private void StartGame() { // Create fish, if need be. if (m_Fish == null) { var fishObject = Instantiate(fishPrefab); m_Fish = fishObject.GetComponent <DemoFishController>(); if (m_Fish == null) { throw new Exception("Cannot find 'DemoFishController' on " + fishObject); } } // Wipe state from last game. m_Fish.Reset(); // Assign screen areas to players. UpdateSplitScreen(); //start timer m_State = State.InGame; }
private void StartGame() { // Create fish, if need be. if (m_Fish == null) { var fishObject = Instantiate(fishPrefab); m_Fish = fishObject.GetComponent <DemoFishController>(); if (m_Fish == null) { throw new Exception("Cannot find 'DemoFishController' on " + fishObject); } } // Wipe state from last game. m_Fish.Reset(); //start timer // Let players know the game is on. for (var i = 0; i < m_ActivePlayerCount; ++i) { m_Players[i].OnGameStarted(); } }