void OnTriggerEnter2D(Collider2D col) { if (col.CompareTag("Player")) { LevelCompleted?.Invoke(); } }
public void RaiseLevelCompleted() { if (!GameObjects.GetGameState().LevelEditor) { LevelCompleted.Invoke(); } }
/// <summary> /// Triggers the Game Over State /// </summary> private void TriggerLevelComplete() { //Set it to be nobody's turn CurrentTurn = GameTurn.TURN_NONE; //Send Level Failed Event LevelCompleted?.Invoke(); }
public bool CheckLevelCompleted() { if (objectivesFilled.AllFilled()) { LevelCompleted.Invoke(); return(true); } return(false); }
public static void CallLevelCompleted() { LevelCompleted?.Invoke(); }
/// <summary> /// Trigger actions to end the current game with a success state /// </summary> private void TriggerLevelComplete() { LevelCompleted?.Invoke(); gameRunning = false; }
/// <summary> /// Trigger actions to end the current game with a success state /// </summary> private void TriggerLevelComplete() { LevelCompleted?.Invoke(); }
/// <summary> /// Trigger that the level has failed /// </summary> public void TriggerLevelFailed() { LevelCompleted?.Invoke(); }
public static void TriggerLevelComplete() => LevelCompleted?.Invoke();