Exemple #1
0
    public override void EndScenario()
    {
        completed = true;
        GameMaster.SetPause(true);
        GameMaster.realMaster.UnbindScenario(this);

        if (scenarioUI != null)
        {
            scenarioUI.DisableConditionPanel(0);
            scenarioUI.DisableConditionPanel(1);
            scenarioUI.ScenarioEnds(this);
        }
        settleWindow = null;
        if (settleQuest != null)
        {
            settleQuest.MakeQuestCompleted(); settleQuest = null;
            UIController.GetCurrent().updateEvent -= CheckSettlingConditions;
        }
        scenarioQuest?.MakeQuestCompleted(); scenarioQuest = null;
        //hexBuilder.
        //
        FollowingCamera.main.SetObservingPosition(
            hexBuilder.GetHexWorldPosition(new HexPosition(3, Random.Range(0, 18))) + Vector3.up * 5f,
            GameMaster.sceneCenter + Vector3.down * 5f
            );
        //UIController.GetCurrent().ChangeUIMode(UIMode.Endgame, true);
        GameMaster.realMaster.GameOver(GameEndingType.FoundationRoute);
        GameMaster.SetPause(false); // minus one pause request
    }
 public override void EndScenario()
 {
     GameMaster.realMaster.UnbindScenario(this);
     scenarioUI?.ScenarioEnds(this);
 }