public void OnEnemyKilled(GameObject enemy) { liveEnemies.Remove(enemy); survivalManager.GetEnemyScore(); if (liveEnemies.Count == 0) { survivalManager.GetEnemyScore(); } }
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(); } }