void Awake() { if (!Instance) { Instance = this; } else { Debug.Log("Already an Input Manager in the Scene !"); Destroy(this); } }
void OnDestroy() { #region Events #region LeftStick OnVerticalAxisInput = null; OnHorizontalAxisInput = null; OnMoveAxisInput = null; #endregion #region RightStick OnRotateXAxisInput = null; OnRotateYAxisInput = null; OnRotateAxisInput = null; #endregion #region D-pad OnDpadxAxis = null; OnDpadyAxis = null; #endregion #region Trigger OnRightTriggerAxis = null; OnLeftTriggerAxis = null; #endregion #region Buttons #region A #region GetKey OnAInputPress = null; #endregion #region GetKeyDown OnADownInputPress = null; #endregion #region GetKeyUp OnAUpInputPress = null; #endregion #endregion #region B #region GetKey OnBInputPress = null; #endregion #region GetKeyDown OnBDownInputPress = null; #endregion #region GetKeyUp OnBUpInputPress = null; #endregion #endregion #region X #region GetKey OnXInputPress = null; #endregion #region GetKeyDown OnXDownInputPress = null; #endregion #region GetKeyUp OnXUpInputPress = null; #endregion #endregion #region Y #region GetKey OnYInputPress = null; #endregion #region GetKeyDown OnYDownInputPress = null; #endregion #region GetKeyUp OnYUpInputPress = null; #endregion #endregion #region Back #region GetKey OnBackInputPress += null; #endregion #region GetKeyDown OnBackDownInputPress += null; #endregion #region GetKeyUp OnBackUpInputPress += null; #endregion #endregion #region DPadUp #region GetKey OnDPadUpInputPress += null; #endregion #region GetKeyDown OnDPadUpDownInputPress += null; #endregion #region GetKeyUp OnDPadUpUpInputPress += null; #endregion #endregion #region DPadDown #region GetKey OnDPadDownInputPress += null; #endregion #region GetKeyDown OnDPadDownDownInputPress += null; #endregion #region GetKeyUp OnDPadDownUpInputPress += null; #endregion #endregion #region DPadLeft #region GetKey OnDPadLeftInputPress += null; #endregion #region GetKeyDown OnDPadLeftDownInputPress += null; #endregion #region GetKeyUp OnDPadLeftUpInputPress += null; #endregion #endregion #region DPadRight #region GetKey OnDPadRightInputPress += null; #endregion #region GetKeyDown OnDPadRightDownInputPress += null; #endregion #region GetKeyUp OnDPadRightUpInputPress += null; #endregion #endregion #region Start #region GetKey OnStartInputPress = null; #endregion #region GetKeyDown OnStartDownInputPress = null; #endregion #region GetKeyUp OnStartUpInputPress = null; #endregion #endregion #region Bumper #region GetKeyDown //RightBumperDown OnRightBumperDownInputPress = null; //LeftBumperDown OnLeftBumperDownInputPress = null; #endregion #region GetKeyUp //RightBumperUp OnRightBumperUpInputPress = null; //LeftBumperUp OnLeftBumperUpInputPress = null; #endregion #region GetKey //RightBumper OnRightBumperInputPress = null; //LeftBumper OnLeftBumperInputPress = null; #endregion #endregion #region LeftStickClick #region GetKey OnLeftStickClickInputPress = null; #endregion #region GetKeyDown OnLeftStickClickDownInputPress = null; #endregion #region GetKeyUp OnLeftStickClickUpInputPress = null; #endregion #endregion #region RightStickClick #region GetKey OnRightStickClickInputPress = null; #endregion #region GetKeyDown OnRightStickClickDownInputPress = null; #endregion #region GetKeyUp OnRightStickClickUpInputPress = null; #endregion #endregion #endregion #endregion Instance = null; }