protected override bool UnInit() { if (_prodRebellionStart != null && _prodRebellionStart.gameObject != null) { _prodRebellionStart.gameObject.Discard(); } _prodRebellionStart = null; return(true); }
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); }
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); }
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); }
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); }
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); }