Exemple #1
0
    protected override void OnDie()
    {
        rigid.gravityScale = 0;
        rigid.velocity     = Vector2.zero;
        anim.SetDead();
        boxCol.enabled = false;

        ai.SetDead(); //만들꺼야

        CoinManager.PopCoin(transform.position, coinCount);

        Invoke("DeadProcess", 1f);
    }
Exemple #2
0
    protected override void OnDie()
    {
        _goblinAnim.SetDead();

        if (dialogCount > 0)
        {
            GameManager.ShowDialog(dialogCount, () =>
            {
                DropAndDeadProcess();
            });
        }
        else
        {
            DropAndDeadProcess();
        }
    }