private void Release() { int num = (SingletonMonoBehaviour <AppInformation> .Instance != null) ? SingletonMonoBehaviour <AppInformation> .Instance.ReleaseSetNo : 0; if (ScenePrefabs != null) { for (int i = 0; i < ReleaseSet.GetLength(1); i++) { if (ReleaseSet[num, i]) { ScenePrefabs[i] = null; } } } if (SingletonMonoBehaviour <AppInformation> .Instance != null) { SingletonMonoBehaviour <AppInformation> .Instance.ReleaseSetNo = (int)Util.LoopValue(SingletonMonoBehaviour <AppInformation> .Instance.ReleaseSetNo + 1, 0f, 3f); } SceneChanger = null; PortFramePrefab = null; NowTutorialGuide = null; PortTransition = null; SceneChangeAct = null; SceneObjects = null; SceneObject = null; portKeyControl = null; if (SceneNo != null) { SceneNo.Clear(); } SceneNo = null; NowTutorialGuide = null; }
private void OnDestroy() { StrategyTopTaskManager.Instance = null; this.uiModel = null; StrategyTopTaskManager._clsCommandMenuTask = null; StrategyTopTaskManager._clsSailSelect = null; StrategyTopTaskManager._clsShipMove = null; StrategyTopTaskManager._clsMapSelect = null; StrategyTopTaskManager._clsDeploy = null; StrategyTopTaskManager._clsAreaInfo = null; StrategyTopTaskManager._clsDebug = null; StrategyTopTaskManager._clsTurnEnd = null; StrategyTopTaskManager.StrategyLogicManager = null; if (this.AlertToastCamera != null) { this.AlertToastCamera.SetActive(true); } this.AlertToastCamera = null; this.TutorialGuide6_1 = null; this.TutorialGuide6_2 = null; this.TutorialGuide8_1 = null; this.TutorialGuide9_1 = null; this.StartCor = null; }
private void OnEnable() { tutorialGuide = (TutorialGuide)target; tutorialPlace = tutorialGuide.GetComponent <TutorialPlace>(); tutorialAI = tutorialGuide.GetComponent <TutorialAI>(); }
public void SetTutorialGuide(TutorialGuide guide) { NowTutorialGuide = guide; }