public void onRabbitDeath(HeroRabbitGood rab) { // rab.transform.position = this.startingPosition; rab.death(); // Debug.Log(lifes);//321 lifeMan.die(lifes); lifes--; if (lifes != 0) { StartCoroutine(RabbitNotDead(rab)); } else { // Debug.Log("lost"); StartCoroutine(Loss()); } }
public void onRabbitDeath(HeroRabbitGood rabbit) { rabbit.death(); StartCoroutine(RabbitNotDead(rabbit)); }