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()); }
public static bool GetAbsorbEnergy(InputStateType type) { return(instance.absorbEnergy.GetState(type)); }
public static bool GetEscape(InputStateType type) { return(instance.escape.GetState(type)); }
public static bool GetCrouch(InputStateType type) { return(instance.crouch.GetState(type)); }
public static bool GetReleaseEnergy(InputStateType type) { return(instance.releaseEnergy.GetState(type)); }
public static bool GetSprint(InputStateType type) { return(instance.sprint.GetState(type)); }
public static bool GetJump(InputStateType type) { return(instance.jump.GetState(type)); }