コード例 #1
0
 public void OnEnemyKilled(GameObject enemy)
 {
     liveEnemies.Remove(enemy);
     survivalManager.GetEnemyScore();
     if (liveEnemies.Count == 0)
     {
         survivalManager.GetEnemyScore();
     }
 }
コード例 #2
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();
        }
    }