Ejemplo n.º 1
0
 void Update()
 {
     if (mIsPressed && Time.realtimeSinceStartup < mNextClick)
     {
         mNextClick = Time.realtimeSinceStartup + interval;
         print("touched");
         central.repeatButtonPress(tipoBoton);
         // Do what you need to do, or simply:
         //SendMessage("OnClick", SendMessageOptions.DontRequireReceiver);
     }
 }