Beispiel #1
0
    public void ClickCup(GameObject obj)
    {
        if (!isPlaying)
        {
            return;
        }

        ChangeableItem ci = obj.GetComponent <ChangeableItem>();

        if (ci.isGood)
        {
            neededCups--;
            mdb.winTime(0.3f);
            GameSound.gameSound.PlaySFX("collect_X");
            obj.SetActive(false);

            if (neededCups == 0)
            {
                EndGame();
            }
        }
        else
        {
            GameSound.gameSound.PlaySFX("error");
            mdb.loseTime(1.0f);
        }
    }
Beispiel #2
0
 public void fixedPipe()
 {
     GameSound.gameSound.PlaySFX("tap");
     collectedDrops++;
     mdb.winTime(1.0f);
     if (collectedDrops >= fixesNeed)
     {
         EndGame();
     }
 }
Beispiel #3
0
 public void SpecialCollected()
 {
     mdb.winTime(2.0f);
     GameSound.gameSound.PlaySFX("collect_X");
     //mdb.EndedGameLose();
 }