Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public AxisAction(AbstractAxisInput axis, AxisChallengeType type, bool chained) {
     axisID = axis;
     challengeID = type;
     connecting = chained;
 }
Exemplo n.º 4
0
 public AxisAction(AbstractAxisInput axis, AxisChallengeType type, bool chained)
 {
     axisID      = axis;
     challengeID = type;
     connecting  = chained;
 }