예제 #1
0
    private void Consumebanana(GameObject bananaObject)
    {
        if (isFull)
        {
            return;     //Ya get one banana thats it!
        }
        isFull = true;
        ballArea.RemoveSpecificBanana(bananaObject);

        AddReward(1f);
    }
예제 #2
0
    private void Consumebanana(GameObject bananaObject)
    {
        //Just checking inventory if is full
        if (isFull)
        {
            return;     //Ya get one banana thats it!
        }
        isFull = true;
        ballArea.RemoveSpecificBanana(bananaObject);

        AddReward(1f);
    }