Пример #1
0
    public override void PlayDead()
    {
        if (this.dead == true)
        {
            return;
        }

        this.dead = true;

        if (this.animator != null)
        {
            this.animator.SetInteger("State", 0);
        }

        if (this.charModel == null)
        {
            return;
        }

        if (this.hpBar != null)
        {
            Destroy(this.hpBar.gameObject);
        }

        BattleControllor.RemoveMonster(this);

        this.charModel.PlayDead();

        StartCoroutine(Remove());
    }