void Awake() { if (!Instance) { Instance = this; } else { Debug.Log("Already an Input Manager in the Scene !"); Destroy(this); } }
void OnDestroy() { #region Events #region Xbox Controller #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; OnDpadxButton = null; OnDpadyButton = null; #endregion #region Trigger OnRightTriggerAxis = null; OnLeftTriggerAxis = null; #endregion #region Buttons #region A //A OnAInputPress = null; //AUp OnAUpInputPress = null; //ADown OnADownInputPress = null; #endregion #region B //B OnBInputPress = null; //BUp OnBUpInputPress = null; //BDown OnBDownInputPress = null; #endregion #region X //X OnXInputPress = null; //XUp OnXUpInputPress = null; //XDown OnXDownInputPress = null; #endregion #region Y //Y OnYInputPress = null; //YUp OnYUpInputPress = null; //YDown OnYDownInputPress = null; #endregion #region Start //Start OnStartInputPress = null; //StartUp OnStartUpInputPress = null; //StartDown OnStartDownInputPress = null; #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 LeftTriggerClick #region GetKey OnLeftStickClickInputPress = null; #endregion #region GetKeyDown OnLeftStickClickDownInputPress = null; #endregion #region GetKeyUp OnLeftStickClickUpInputPress = null; #endregion #endregion #region RightTriggerClick #region GetKey OnRightStickClickInputPress = null; #endregion #region GetKeyDown OnRightStickClickDownInputPress = null; #endregion #region GetKeyUp OnRightStickClickUpInputPress = null; #endregion #endregion #endregion #endregion #endregion Instance = null; }