Ejemplo n.º 1
0
    // Game over coroutine to cleanup all the dirt from the level.
    // Just a nice visual for the player.
    private IEnumerator StartGameOver()
    {
        yield return(Snake.DestroyBody());

        Destroy(Snake.gameObject);

        Destroy(m_Target.m_Object.gameObject);

        yield return(m_Camera.ResetCamera());
    }