public void ResetGame() { m_Level = 1; enemyCount = 0; percAddUFO = m_GameManager.m_GlobalSetupData.numKillUFOInLevel; percDecInstUFO = m_GameManager.m_GlobalSetupData.timeInstantUFO; m_ScoreText.text = m_Level.ToString(); if (m_Creator == null) { m_Creator = FindObjectOfType <UFOCreator>(); } m_Creator.ShowStatus(); if (m_GameManager == null) { m_GameManager = FindObjectOfType <CUFOGameManager>(); } m_LevelTime = m_GameManager.m_GlobalSetupData.levelTimeLimit; m_TimeText.text = m_LevelTime.ToString("F0"); m_Creator.ResetEnergy(); AllDestroy("enemy"); AllDestroy("line"); AllDestroy("particle"); }
public void SetupUI() { m_PlayManager.ResetGame(); m_Creator.ResetEnergy(); }