예제 #1
0
    private IEnumerator BeginGame()
    {
        mazeInstance = Instantiate(mazePrefab) as Maze;
        yield return(StartCoroutine(mazeInstance.Generate()));

        SpawnHorror(30);
        playerInstance = Instantiate(playerPrefab) as OVRPlayerController;
        playerInstance.SetLocation(mazeInstance.GetCell(new IntVector2(0, 19)));
        trophyInstance = Instantiate(trophyPrefab) as Trophy;
        trophyInstance.SetLocation(mazeInstance.GetCell(new IntVector2(19, 0)));
    }