/// <summary> /// Close the Panel when the user tries to connect the game, and deactivate each object /// </summary> private void ConnectToGame() { ModalConnectToGamePanel.Instance().ClosePanel(); clueLessGraphicalGameplayObjects.ForEach(go => go.SetActive(true)); }
void Start() { // Show the Connect to Game Panel when the game first starts // When the panel is closed ConnectToGame() is called ModalConnectToGamePanel.Instance().ShowPanel(() => ConnectToGame()); }