Пример #1
0
    IEnumerator killRabbit()
    {
        yield return(new WaitForSeconds(0.5f));

        HeroRabbit rabit = HeroRabbit.lastRabit;

        if (rabit.isBigRabit())
        {
            rabit.beBig(false);
        }
        else
        {
            HeroRabbit.lastRabit.die(this.transform);
        }
        if (sr.flipX)
        {
            mode = Mode.GoToA;
        }
        else
        {
            mode = Mode.GoToB;
        }
    }