private void Awake() { menu = FindObjectOfType <EIU_ControlsMenu>(); if (instance != null) { Destroy(gameObject); } else { instance = this; DontDestroyOnLoad(gameObject); } //send data to Controls Menu if we are at main menu if (menu) { //send all axes menu.Axes = Axes; //init menu.Init(); } LoadAllAxes(); }
/// <summary> /// Opens the Rebind Dialog /// </summary> public void RebindAxis() { EIU_ControlsMenu.Instance().OpenRebindButtonDialog(axisName, negativeKey); }
private void Awake() { instance = this; }