// Use this for initialization void Start() { ObjectiveSecured.AddListener(nullping); Application.runInBackground = true; }
private void Start() { active = true; GotItButton.GetComponentInChildren <Text>().text = "Show"; // connect UI events abortAction = End; nextAction = Next; showAgainToggleAction = onShowAgainChanged; AbortButton.onClick.AddListener(abortAction); GotItButton.onClick.AddListener(nextAction); StartShowAgainToggle.onValueChanged.AddListener(showAgainToggleAction); EndShowAgainToggle.onValueChanged.AddListener(showAgainToggleAction); // connect events to track user progress firstEmployeeHiredAction = EnterPage3; firstMissionAcceptedAction = EnterPage4; firstMissionSelectedAction = EnterPage5; workplaceInfoOpenedAction = EnterPage6; firstLevelUpAction = EnterPage7; FirstEmployeeHired.AddListener(firstEmployeeHiredAction); FirstMissionAccepted.AddListener(firstMissionAcceptedAction); FirstMissionSelected.AddListener(firstMissionSelectedAction); WorkplaceInfoOpened.AddListener(workplaceInfoOpenedAction); FirstLevelUp.AddListener(firstLevelUpAction); // disable buttons EnableUi(false); if (!GameSettings.NewGame) { var lastStage = SaveGameSystem.Instance.GetCurrentSaveGame().TutorialStage; if (lastStage == 1) { Page1.Enter(); TutorialState.Enter(); } else if (lastStage == 2) { EnterPage2(); } else if (lastStage == 3) { EnterPage3(null); } else if (lastStage == 4) { EnterPage4(); } else if (lastStage == 5) { StartCoroutine(DelayPage5(0)); } else if (lastStage == 6) { StartCoroutine(DelayPage6(0)); } else if (lastStage == 7) { EnableUi(true); MainUiManager.InitialState.Enter(); GameTime.GameTime.Instance.StartGame(); } } else { SaveGameSystem.Instance.SetTutorialLevel(1); Page1.Enter(); TutorialState.Enter(); } }
// Use this for initialization void Start() { ObjectiveSecured.AddListener(nullping); Application.runInBackground = true; Capture = this.GetComponent <AudioSource>(); }
// Use this for initialization void Start() { ObjectiveSecured.AddListener(nullping); }