void Die() { Destroy(transform.Find("SwallowZone").gameObject); StartCoroutine(SlowAnimation(5f)); deathSound.Play(); state = State.Dead; FindObjectOfType <PlayerController>().StartWin(); segments.StartDeathSequence(); }
void Die() { Destroy(transform.Find("SwallowZone").gameObject); StartCoroutine(SlowAnimation(5f)); deathSound.Play(); state = State.Dead; FindObjectOfType <PlayerController>().StartWin(); segments.StartDeathSequence(); }