コード例 #1
0
    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());
        }
    }
コード例 #2
0
 public void onRabbitDeath(HeroRabbitGood rabbit)
 {  rabbit.death();
 StartCoroutine(RabbitNotDead(rabbit));
  }