Ejemplo n.º 1
0
 private void Start()
 {
     cooldownTimer = cooldownInterval;
     playerBody    = GetComponent <Rigidbody>();
     state         = State.Normal;
     TRC           = GetComponent <TimeChangeReflect>();
 }
Ejemplo n.º 2
0
 private void PlayerBButton(int index)
 {
     if (Input.GetAxis("BButton" + index) > 0.0f)
     {
         if (target != null)
         {
             TimeChangeReflect TCRT = target.gameObject.GetComponent <TimeChangeReflect>();
             {
                 TCRT.FastSth(speedTargetTime, speedTargetStrenght);
             }
         }
     }
 }
Ejemplo n.º 3
0
 private void PlayerAButton(int index)
 {
     if (Input.GetAxis("AButton" + index) > 0.0f)
     {
         if (target != null)
         {
             Debug.Log(target.gameObject.name.ToString());
             TimeChangeReflect TCRT = target.gameObject.GetComponent <TimeChangeReflect>();
             {
                 TCRT.SlowSth(slowTargetTime, slowTargetStrenght);
             }
         }
     }
 }