private void Update()
 {
     if (AtfInput.GetKey(KeyCode.Space))
     {
         transform.Rotate(new Vector3(0, 1, 1), Time.deltaTime * SPEED);
     }
 }
Esempio n. 2
0
 private void Update()
 {
     _verticalThrust   = AtfInput.GetAxis("Vertical") * speed;
     _horizontalThrust = AtfInput.GetAxis("Horizontal") * torque;
     _ani.SetBool(Running, _forceVec.magnitude > 0);
     if (_bombCoroutine != null || !AtfInput.GetKey(KeyCode.Space))
     {
         return;
     }
     _bombCoroutine = StartCoroutine(BombCoroutine());
 }