Example #1
0
 public void OnAccel(UnityEngine.InputSystem.InputValue input)
 {
     instructions.gameObject.SetActive(false);
     accel = input.Get <float>();
     foreach (var system in bigExplosion)
     {
         if (accel > 0 && healthText.text != string.Empty)
         {
             system.Play(false);
         }
         else
         {
             system.Stop();
         }
     }
 }
Example #2
0
 void OnMove(UnityEngine.InputSystem.InputValue inputValue)
 {
     this.moveVector = inputValue.Get <Vector2>();
     animator.SetFloat("Speed", Mathf.Abs(moveVector.x));
 }
Example #3
0
 public void OnTurn(UnityEngine.InputSystem.InputValue input) => vector = input.Get <Vector2>();
Example #4
0
 public void OnFire(UnityEngine.InputSystem.InputValue input) => firing = input.Get <float>();