Esempio n. 1
0
    public IEnumerator _DeathFinalNoMEC()
    {
        //Debug.Log("DogeBoss : _DeathFinal");
        Being being = this;

        being.inDeathSequence = true;
        being.sp.explosionGen.CreateExplosionString(1, being.transform.position, being.transform.rotation, being);
        S.I.PlayOnce(being.explosionSound, being.IsReference());
        if ((bool)(UnityEngine.Object)being.talkBubble)
        {
            being.talkBubble.Fade();
        }
        yield return(float.NegativeInfinity);

        being.Remove();
        System.Diagnostics.Stopwatch stopWatch = new System.Diagnostics.Stopwatch();
        stopWatch.Start();
        yield return(new WaitForSeconds(0.2f));

        being.inDeathSequence    = false;
        being.spriteRend.enabled = false;
        being.shadow.SetActive(false);
        yield return(new WaitForSeconds(0.6f));

        if ((bool)(UnityEngine.Object)being.talkBubble)
        {
            UnityEngine.Object.Destroy((UnityEngine.Object)being.talkBubble.gameObject);
        }
        stopWatch.Stop();
    }