Click on repeat button problen

Hi! I am new to Unity, but I have already made a game that I am changing to work for android.

I have a repeat button setup and working on mac (activating my function as long as it is held down, multiple times). But when I try to hold it (click and don 't let go) on android it just activates my function once per click .

Can anyone help me fix this? What is wrong? As I said before it works fine on Mac with android as platform and mobile input enabled.

P. S. I need answers ASAP, this game is due to be handed in to my teacher by Friday! Thanks! And Please?

If this is in the uGUI then a default button won’t work. But the PointerListener script (Touch and hold a button on new UI - Unity Engine - Unity Discussions ) here will solve your problem.

Thanks! I will try this tomorrow and see if it works.

Do you have anything in Js? I can’t write in C#, but I am taking classes next term to learn it.

Not really and while I write JavaScript for other projects I don’t know how to convert C# into UnityScript. Sorry.

Thanks anyway! Any one else who can help me?