pair.nodePanel.UnHide(); } else { pair.nodePanel.Close(); } }); } } } public void Hide() { gameObject.SetActive(false); } public void UnHide() { gameObject.SetActive(true); } public bool Open(UnityAction onClose) { IOpenAble panel = gameObject.GetComponent<IOpenAble>(); if ((pane...
When the GameManager detects a win or draw condition, it will unhide a button that can be used to restart the game. Create that button now using the same methods as before, except there is no need to make a prefab this time. Like before, register an On Click method to the Restart fun...
// Contains the bounding box private GameObject bbox = new GameObject(); // Contains the label text private GameObject text = new GameObject(); // The canvas on which the bounding box labels will be drawn private GameObject canvas = GameObject.Find("Label Canvas"); // The ...