private void Consumebanana(GameObject bananaObject) { if (isFull) { return; //Ya get one banana thats it! } isFull = true; ballArea.RemoveSpecificBanana(bananaObject); AddReward(1f); }
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); }