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();
        }
Пример #2
0
 /// <summary>
 /// Opens the Rebind Dialog
 /// </summary>
 public void RebindAxis()
 {
     EIU_ControlsMenu.Instance().OpenRebindButtonDialog(axisName, negativeKey);
 }
Пример #3
0
 private void Awake()
 {
     instance = this;
 }