protected override void Awake()
        {
            this._clsTasks = this.SafeGetComponent <SceneTasksMono>();
            this._clsTasks.Init();
            GameObject gameObject = base.get_transform().FindChild("Task").get_gameObject();

            StrategyTaskManager._clsTopTask       = gameObject.get_transform().FindChild("StrategyTop").GetComponent <StrategyTopTaskManager>();
            StrategyTaskManager._clsRebellionTask = gameObject.get_transform().FindChild("Rebellion").GetComponent <StrategyRebellionTaskManager>();
            if (SingletonMonoBehaviour <FadeCamera> .Instance != null)
            {
                SingletonMonoBehaviour <FadeCamera> .Instance.SetActive(true);
            }
            if (!KeyControlManager.exist())
            {
                Util.Instantiate(this.KeyManager, null, false, false);
            }
            StrategyTaskManager._traOverView       = base.get_transform().FindChild("OverView");
            StrategyTaskManager._traOverViewCamera = StrategyTaskManager._traOverView.FindChild("OverViewCamera").GetComponent <Camera>();
            StrategyTaskManager._traMapRoot        = base.get_transform().FindChild("Map Root");
        }
Ejemplo n.º 2
0
        protected override void Awake()
        {
            _clsTasks = this.SafeGetComponent <SceneTasksMono>();
            _clsTasks.Init();
            GameObject gameObject = base.transform.FindChild("Task").gameObject;

            _clsTopTask       = ((Component)gameObject.transform.FindChild("StrategyTop")).GetComponent <StrategyTopTaskManager>();
            _clsRebellionTask = ((Component)gameObject.transform.FindChild("Rebellion")).GetComponent <StrategyRebellionTaskManager>();
            if (SingletonMonoBehaviour <FadeCamera> .Instance != null)
            {
                SingletonMonoBehaviour <FadeCamera> .Instance.SetActive(isActive : true);
            }
            if (!KeyControlManager.exist())
            {
                Util.Instantiate(KeyManager);
            }
            _traOverView       = base.transform.FindChild("OverView");
            _traOverViewCamera = ((Component)_traOverView.FindChild("OverViewCamera")).GetComponent <Camera>();
            _traMapRoot        = base.transform.FindChild("Map Root");
        }