Example #1
0
 public bool GetStatus(ButtonInput.ButtonState inputStatus)
 {
     foreach (ButtonInput button in inputList)
     {
         if (button.IsStatus(inputStatus))
         {
             return(true);
         }
     }
     return(false);
 }
Example #2
0
    /**
     * Returns true if any button bound to the specified gameAction has the specified status.
     */
    private static bool GetStatus(string gameActionID, ButtonInput.ButtonState inputStatus)
    {
        GameAction gameAction;

        if (gameActionBindings.TryGetValue(gameActionID, out gameAction))
        {
            return(gameAction.GetStatus(inputStatus));
        }
        else
        {
            Debug.LogError("A game action with the identification " + gameActionID + " has not been bound.");
            return(false);
        }
    }