Ejemplo n.º 1
0
 void OnPress(bool isPressed)
 {
     if (target != null)
     {
         if (((isPressed && trigger == Trigger.OnPress) ||
              (!isPressed && trigger == Trigger.OnRelease)))
         {
             target.onPress4Lua(gameObject, functionName, isPressed);
         }
     }
     if (target2 != null)
     {
         if (((isPressed && trigger == Trigger.OnPress) ||
              (!isPressed && trigger == Trigger.OnRelease)))
         {
             target2.onPress4Lua(gameObject, functionName, isPressed);
         }
     }
 }