Example #1
0
 void OnTriggerEnter2D(Collider2D col)
 {
     if (col.CompareTag("Player"))
     {
         LevelCompleted?.Invoke();
     }
 }
Example #2
0
 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();
    }
Example #4
0
 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();
 }
Example #9
0
 public static void TriggerLevelComplete() => LevelCompleted?.Invoke();