Example #1
0
    public void RemoveUnit(PlayerController player, Unit unit)
    {
        if (player == this.player1)
        {
            this.player1Units.Remove(unit);
            if (this.player1Units.Count == 0)
            {
                TransitionController.GetInstance().Load("GameOver");
            }
        }

        if (player == this.player2)
        {
            this.player2Units.Remove(unit);
            if (this.player2Units.Count == 0)
            {
                TransitionController.GetInstance().Load("YouWin");
            }
        }
    }
Example #2
0
 private void Start()
 {
     this.transitionController = TransitionController.GetInstance();
 }
Example #3
0
 private void Exit(InputAction.CallbackContext context)
 {
     TransitionController.GetInstance().Load("title");
 }
Example #4
0
 public void Start()
 {
     this.SetResolutionDropdownOptions();
     this.SetQualityDropdownOptions();
     this.transitionController = TransitionController.GetInstance();
 }