Example #1
0
 private bool CheckForUltimate()
 {
     if (isUltimateReady)
     {
         var input = "Ultimate" + ((int)playerNumber + 1).ToString();
         if (Input.GetButtonDown(input))
         {
             isUltimateReady = false;
             ultimate.ActivateUltimate();
             return(true);
         }
     }
     return(false);
 }