예제 #1
0
 protected override bool UnInit()
 {
     if (_prodRebellionStart != null && _prodRebellionStart.gameObject != null)
     {
         _prodRebellionStart.gameObject.Discard();
     }
     _prodRebellionStart = null;
     return(true);
 }
예제 #2
0
        public static ProdRebellionStart Instantiate(ProdRebellionStart prefab, Transform parent)
        {
            ProdRebellionStart prodRebellionStart = UnityEngine.Object.Instantiate(prefab);

            prodRebellionStart.transform.parent = parent;
            prodRebellionStart.transform.localPositionZero();
            prodRebellionStart.transform.localScaleOne();
            return(prodRebellionStart);
        }
예제 #3
0
 protected override bool UnInit()
 {
     if (this._prodRebellionStart != null && this._prodRebellionStart.get_gameObject() != null)
     {
         this._prodRebellionStart.get_gameObject().Discard();
     }
     this._prodRebellionStart = null;
     return(true);
 }
        public static ProdRebellionStart Instantiate(ProdRebellionStart prefab, Transform parent)
        {
            ProdRebellionStart prodRebellionStart = Object.Instantiate <ProdRebellionStart>(prefab);

            prodRebellionStart.get_transform().set_parent(parent);
            prodRebellionStart.get_transform().localPositionZero();
            prodRebellionStart.get_transform().localScaleOne();
            return(prodRebellionStart);
        }
예제 #5
0
 private void OnDestroy()
 {
     _prefabProdRebellionStart = null;
     _prodRebellionAreaCheck   = null;
     deckInfoManager           = null;
     commonDialog            = null;
     StrategyDialog          = null;
     GoSortieConfirm         = null;
     TweenAlphaRedMask       = null;
     _prodRebellionStart     = null;
     _prodRebellionAreaCheck = null;
     Mem.DelListSafe(ref AreaDecks);
 }
예제 #6
0
 private void OnDestroy()
 {
     this._prefabProdRebellionStart = null;
     this._prodRebellionAreaCheck   = null;
     this.deckInfoManager           = null;
     this.commonDialog            = null;
     this.StrategyDialog          = null;
     this.GoSortieConfirm         = null;
     this.TweenAlphaRedMask       = null;
     this._prodRebellionStart     = null;
     this._prodRebellionAreaCheck = null;
     Mem.DelListSafe <DeckModel>(ref this.AreaDecks);
 }
예제 #7
0
 protected override bool Init()
 {
     this.DelayAction(1.5f, delegate
     {
         StrategyTopTaskManager.Instance.GetInfoMng().MoveScreenOut(null);
     });
     _prodRebellionStart     = ProdRebellionStart.Instantiate(((Component)_prefabProdRebellionStart).GetComponent <ProdRebellionStart>(), StrategyTaskManager.GetOverView());
     _prodRebellionAreaCheck = Util.Instantiate(_prefabProdAreaCheck, StrategyTaskManager.GetMapRoot().gameObject).GetComponent <ProdRebellionAreaCheck>();
     _prodRebellionStart.Play(delegate
     {
         setActiveRedMask(isActive: true);
     }).Subscribe(delegate
     {
         _prodRebellionAreaCheck.Play(StrategyRebellionTaskManager.RebellionFromArea, StrategyRebellionTaskManager.RebellionArea, delegate
         {
             StartCoroutine(GoNextSceneAtDeckNum(StrategyTaskManager.GetStrategyRebellion().GetRebellionManager().Decks));
         });
     }).AddTo(base.gameObject);
     return(true);
 }