private void GetRef() { StrategyTopTaskManager._clsCommandMenuTask = base.get_transform().FindChild("CommandMenu").GetComponent <TaskStrategyCommandMenu>(); StrategyTopTaskManager._clsSailSelect = base.get_transform().FindChild("SailSelect").GetComponent <TaskStrategySailSelect>(); StrategyTopTaskManager._clsShipMove = base.get_transform().FindChild("ShipMove").GetComponent <TaskStrategyShipMove>(); StrategyTopTaskManager._clsMapSelect = base.get_transform().FindChild("MapSelect").GetComponent <TaskStrategyMapSelect>(); StrategyTopTaskManager._clsDeploy = base.get_transform().FindChild("Deploy").GetComponent <TaskDeployTop>(); StrategyTopTaskManager._clsAreaInfo = base.get_transform().FindChild("Record").GetComponent <TaskStrategyAreaInfo>(); StrategyTopTaskManager._clsDebug = base.get_transform().FindChild("Debug").GetComponent <TaskStrategyDebug>(); StrategyTopTaskManager._clsTurnEnd = base.get_transform().FindChild("TurnEnd").GetComponent <StrategyTurnEnd>(); }
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; }