Exemplo n.º 1
0
    void Die()
    {
        Destroy(transform.Find("SwallowZone").gameObject);
        StartCoroutine(SlowAnimation(5f));
        deathSound.Play();

        state = State.Dead;

        FindObjectOfType <PlayerController>().StartWin();
        segments.StartDeathSequence();
    }