// Takes an bool public static bool Button(bool bttnState, ButtonChallengeType chalTyp) { bool rtnBool = false; switch (chalTyp) { case ButtonChallengeType.PRESSED: rtnBool = (bttnState == true ? true : false); break; case ButtonChallengeType.LETGO: rtnBool = (bttnState == false ? true : false); break; } return rtnBool; }
// Takes an bool public static bool Button(bool bttnState, ButtonChallengeType chalTyp) { bool rtnBool = false; switch (chalTyp) { case ButtonChallengeType.PRESSED: rtnBool = (bttnState == true ? true : false); break; case ButtonChallengeType.LETGO: rtnBool = (bttnState == false ? true : false); break; } return(rtnBool); }
public ButtonAction(AbstractButtonInput bt, ButtonChallengeType type, bool chained) { buttonID = bt; challengeID = type; connecting = chained; }
public ButtonAction(AbstractButtonInput bt, ButtonChallengeType type, bool chained) { buttonID = bt; challengeID = type; connecting = chained; }