public void UpdateSelected() { if (_menuSelectionHandler == null) { _menuSelectionHandler = transform.root.gameObject.GetComponentInChildren <MenuSelectionHandler>(); } _menuSelectionHandler.UpdateSelection(gameObject); }
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); }
private new void Awake() { _menuSelectionHandler = transform.root.gameObject.GetComponentInChildren <MenuSelectionHandler>(); }
public virtual void Start() { MSH = GetComponent <MenuSelectionHandler>(); LoadMenu(); }