Esempio n. 1
0
 void UseAction(InputAction action)
 {
     if (action.ButtonDelegate == null)
     {
         throw new System.Exception("Tried to call an action that doesn't have a delegate attached.");
     }
     else
     {
         action.ButtonDelegate();
     }
 }