Example #1
0
 private void FixedUpdate()
 {
     if (!_photonView.IsMine)
     {
         return;
     }
     _steering?.Invoke();
     if (Input.GetKeyDown(KeyCode.M))
     {
         ActivateJetpack();
     }
     if (Input.GetKeyDown(KeyCode.N))
     {
         ActivateGlove();
     }
     if (Input.GetKeyDown(KeyCode.B))
     {
         ActivateSpear();
     }
     if (Input.GetKeyDown(KeyCode.V))
     {
         ActivateFreezeGun();
     }
     if (Input.GetKeyDown(KeyCode.D))
     {
         ActivateDynamit();
     }
 }
Example #2
0
 private void FixedUpdate()
 {
     _steering?.Invoke();
     if (_steeringAgent != null)
     {
         return;
     }
     if (Input.GetKeyDown(KeyCode.M))
     {
         ActivateJetpack();
     }
     if (Input.GetKeyDown(KeyCode.B))
     {
         ActivateSpear();
     }
     if (Input.GetKeyDown(KeyCode.V))
     {
         ActivateFreezeGun();
     }
 }