コード例 #1
0
    private void EndGame()
    {
        worldAudio.gameObject.GetComponent <AudioPlayer>().PlayHome7();

        state = 0;
        cameraFollower.StartFollow();
        snake.GetComponent <snakePlayer>().CleanUp();
        Destroy(snake);
        gameDoor.entered = false;
        worldPlayer.GetComponent <SnakePlayerSmooth>().Resume();
        foodSpawner.CleanUp();
        foodSpawner.gameObject.SetActive(false);
    }