예제 #1
0
    private void StartGame()
    {
        worldAudio.gameObject.GetComponent <AudioPlayer>().PlayFab();
        state = 1;
        score = 0;
        worldPlayer.GetComponent <SnakePlayerSmooth>().Pause();
        foodSpawner.gameObject.SetActive(true);

        snake = Instantiate(playerPrefab, snakeStart.position, Quaternion.identity);
        // move camera
        cameraFollower.SetStaticPosition(cameraPos);
        // disable player
    }