Example #1
0
 void Update()
 {
     if (customInput.GetFireDown())
     {
         fireDownEvent.Invoke();
     }
     if (customInput.GetFireUp())
     {
         fireUpEvent.Invoke();
     }
     if (customInput.ChangeWeapon())
     {
         weaponSwitchEvent.Invoke();
     }
 }
Example #2
0
 public float ChangeWeapon()
 {
     return(input.ChangeWeapon());
 }