コード例 #1
0
    public void UpdateSelected()
    {
        if (_menuSelectionHandler == null)
        {
            _menuSelectionHandler = transform.root.gameObject.GetComponentInChildren <MenuSelectionHandler>();
        }

        _menuSelectionHandler.UpdateSelection(gameObject);
    }
コード例 #2
0
 public virtual void Awake()
 {
     MSH = GetComponent <MenuSelectionHandler>();
     Cursor.lockState = CursorLockMode.None;
     Cursor.visible   = true;
     currentCanvas    = initialCanvas;
     childCanvases    = GetComponentsInChildren <Canvas>();
     foreach (Canvas c in childCanvases)
     {
         c.gameObject.SetActive(false);
     }
     currentCanvas.gameObject.SetActive(false);
 }
コード例 #3
0
 private new void Awake()
 {
     _menuSelectionHandler = transform.root.gameObject.GetComponentInChildren <MenuSelectionHandler>();
 }
コード例 #4
0
 public virtual void Start()
 {
     MSH = GetComponent <MenuSelectionHandler>();
     LoadMenu();
 }