Exemple #1
0
    public void RemovePointFromlist(CheckpointController point)
    {
        passedCheckpointCount++;

        checkPoints.Remove(point);
        survivalManager.GetEnemyScore();
        if (checkPoints.Count == 0)
        {
            Debug.Log("All checkPoint Passed");
            survivalManager.CleanGame();
            survivalManager.SetRoom();
            survivalManager.CalculateScore();
            passedCheckpointCount = 0;
        }
        else
        {
            AddRingToAllCheckpoints();
        }
    }
 public void OnNextButtonClick()
 {
     survivalManager.CleanGame();
     survivalManager.SetRoom();
     nextButton.gameObject.SetActive(false);
 }