Exemplo n.º 1
0
    protected override void OnMouseClicked()
    {
        base.OnMouseClicked();
        if (LevelManager.GetI().isStart)
        {
            LevelManager.GetI().isStart = false;
            return;
        }
        foreach (Fish fish in FishGenerator.GetI().fishList)
        {
            fish.Die();
        }

        FishGenerator.GetI().fishCount = 0;
    }
Exemplo n.º 2
0
 public void nextLevel()
 {
     if (currentLevel == 0 && isStart)
     {
         isStart = false;
     }
     else if (currentLevel < levelsCount - 1)
     {
         currentLevel++;
         MusicManager.GetI().SetMusic(levelConfigs[currentLevel].musicID);
     }
     else
     {
         FishGenerator.GetI().Stop();
     }
 }