Esempio n. 1
0
    IEnumerator OnSongEnd(AudioClip clip)
    {
        yield return(new WaitForSeconds(clip.length));

        state = GameState.SCORE_INFO;

        if (Player.Score > PlayerPrefs.GetInt(clip.name))
        {
            PlayerPrefs.SetInt(clip.name, Player.Score);
        }

        foreach (GameObject eType in enemyTypes)
        {
            SimplePool.ReleasePool(eType.name);
        }
    }