Esempio n. 1
0
    void OnAvatarDie(CharacterBehavior cb)
    {
        if (cb != characterBehavior)
        {
            return;
        }

        shadow.SetActive(false);
        if (progressBarCoroutine != null)
        {
            try
            {
                StopCoroutine(progressBarCoroutine);
                if (fxState == fxStates.SUPER)
                {
                    OnAvatarProgressBarEmpty();
                }
            } catch
            {
                Debug.Log("ERROR en OnAvatarDie");
            }
        }
        cb.Die();
    }