void Update() { if (Input.GetKeyDown(KeyCode.Escape)) { Navigator.Backward(); } }
void Start() { if (sideMenuButton != null && sideMenu != null) { sideMenuButton.onClick.AddListener(() => { sideMenu.Toggle(); }); } if (backwardButton != null) { backwardButton.onClick.AddListener(() => { Navigator.Backward(); }); } }
protected virtual void DoBackward() { Navigator.Backward(); //currentNode = CurrentNode.Parent; }