Beispiel #1
0
        public bool GetState(InputStateType type)
        {
            switch (type)
            {
            case InputStateType.PRESSED:
                return(pressed);

            case InputStateType.JUST_PRESSED:
                return(justPressed);

            case InputStateType.JUST_RELESED:
                return(justReleased);
            }

            throw new System.Exception("INPUT ERROR: Unexpected result: " + type.ToString());
        }
Beispiel #2
0
 public static bool GetAbsorbEnergy(InputStateType type)
 {
     return(instance.absorbEnergy.GetState(type));
 }
Beispiel #3
0
 public static bool GetEscape(InputStateType type)
 {
     return(instance.escape.GetState(type));
 }
Beispiel #4
0
 public static bool GetCrouch(InputStateType type)
 {
     return(instance.crouch.GetState(type));
 }
Beispiel #5
0
 public static bool GetReleaseEnergy(InputStateType type)
 {
     return(instance.releaseEnergy.GetState(type));
 }
Beispiel #6
0
 public static bool GetSprint(InputStateType type)
 {
     return(instance.sprint.GetState(type));
 }
Beispiel #7
0
 public static bool GetJump(InputStateType type)
 {
     return(instance.jump.GetState(type));
 }