Example #1
0
 private void TankControl_CanControlTank(CanControlTankEvent info)
 {
     if (CameraManager.inst.IsCurrent <FirstPersonCamera>())
     {
         info.CanControl = true;
     }
 }
Example #2
0
 private void TankControl_CanControlTank(CanControlTankEvent info)
 {
     if (CameraManager.inst.IsCurrent <WorldEditorCamera>())
     {
         info.CanControl = false;
     }
 }
Example #3
0
 private void TankControl_CanControlTank(CanControlTankEvent obj)
 {
     if (Input.GetKey(KeyCode.CapsLock))
     {
         return;
     }
     if (Input.GetKey(KeyCode.Alpha1) || Input.GetKey(KeyCode.Alpha2) || Input.GetKey(KeyCode.Alpha3) || Input.GetKey(KeyCode.Alpha4) || Input.GetKey(KeyCode.Alpha5) || Input.GetKey(KeyCode.Alpha6) || Input.GetKey(KeyCode.Alpha7) || Input.GetKey(KeyCode.Alpha8) || Input.GetKey(KeyCode.Alpha9) || Input.GetKey(KeyCode.Alpha0))
     {
         UpdateGroups();
     }
 }