Hello,
I’m making a game with images as clickable buttons. There is currently a weird problem: two images from a scene (Scene A) are not clickable on my phone despite being the opposite in the editor. To make the problem even more complicated, an image from Scene B, with the same script and the same way of implementation, is still clickable on both platforms. And yes, the images of scene A and the clickable image of scene B are exactly the same (the differences are only the sprites). Here is my code:
void OnMouseDown()
{
AudioClip audio = Resources.Load<AudioClip>("tap");
AudioSource audiosrc = GetComponent<AudioSource>();
audiosrc.PlayOneShot(audio);
transform.localScale = new Vector2(transform.localScale.x / 1.5f, transform.localScale.y / 1.5f);
SceneManager.LoadScene("MainMenu");
}