示例#1
0
    public void LoadCheckpoint(int checkpoint)
    {
        currentCheckpoint = checkpoint;


        //playerController.move = false;
        if (checkpoint >= phase3Start)
        {
            phase = 3;
        }
        else if (checkpoint >= phase2Start)
        {
            phase = 2;
        }
        else
        {
            phase = 1;
        }
        Debug.Log("Phase: " + phase);
        playerController.MoveToCheckPoint(checkpoints[currentCheckpoint].position);
        Debug.Log("Telling player to move to checkpoint: " + checkpoints[currentCheckpoint].position);
        SongTransition();
        uiManager.ChangeCheckpointMarkers(phase);
        uiManager.ChangeTrackerMarker(phase);
        if (currentCheckpoint == checkpoints.Count)
        {
            // TriggerWin();
        }
    }