public static bool Axis(float axisState, AxisChallengeType chalTyp) { bool rtnBool = false; switch (chalTyp) { case AxisChallengeType.POS: rtnBool = (axisState > .1f ? true : false); break; case AxisChallengeType.NEG: rtnBool = (axisState < -.1f ? true : false); break; } return rtnBool; }
public static bool Axis(float axisState, AxisChallengeType chalTyp) { bool rtnBool = false; switch (chalTyp) { case AxisChallengeType.POS: rtnBool = (axisState > .1f ? true : false); break; case AxisChallengeType.NEG: rtnBool = (axisState < -.1f ? true : false); break; } return(rtnBool); }
public AxisAction(AbstractAxisInput axis, AxisChallengeType type, bool chained) { axisID = axis; challengeID = type; connecting = chained; }