private void OnDestroy() { prefabRebellionOrganizeCtrl = null; _ctrlRebellionOrganize = null; strategyDialog = null; CancelDialogButton = null; }
private void OnDestroy() { this.prefabRebellionOrganizeCtrl = null; this._ctrlRebellionOrganize = null; this.strategyDialog = null; this.CancelDialogButton = null; }
protected override bool UnInit() { DebugUtils.Log("TaskRebellionOrganize", string.Empty); if (_ctrlRebellionOrganize != null && _ctrlRebellionOrganize.gameObject != null) { _ctrlRebellionOrganize.gameObject.Discard(); } _ctrlRebellionOrganize = null; return(true); }
protected override bool UnInit() { DebugUtils.Log("TaskRebellionOrganize", string.Empty); if (this._ctrlRebellionOrganize != null && this._ctrlRebellionOrganize.get_gameObject() != null) { this._ctrlRebellionOrganize.get_gameObject().Discard(); } this._ctrlRebellionOrganize = null; return(true); }
public static CtrlRebellionOrganize Instantiate(CtrlRebellionOrganize prefab, Transform parent, Action sortieStartAction, Action cancelAction) { CtrlRebellionOrganize ctrlRebellionOrganize = Object.Instantiate <CtrlRebellionOrganize>(prefab); ctrlRebellionOrganize.get_transform().set_parent(parent); ctrlRebellionOrganize.get_transform().localPositionZero(); ctrlRebellionOrganize.get_transform().localScaleZero(); ctrlRebellionOrganize._actSortieStartCallback = sortieStartAction; ctrlRebellionOrganize._actCalcelCallback = cancelAction; ctrlRebellionOrganize.Setup(); return(ctrlRebellionOrganize); }
public static CtrlRebellionOrganize Instantiate(CtrlRebellionOrganize prefab, Transform parent, Action sortieStartAction, Action cancelAction) { CtrlRebellionOrganize ctrlRebellionOrganize = UnityEngine.Object.Instantiate(prefab); ctrlRebellionOrganize.transform.parent = parent; ctrlRebellionOrganize.transform.localPositionZero(); ctrlRebellionOrganize.transform.localScaleZero(); ctrlRebellionOrganize._actSortieStartCallback = sortieStartAction; ctrlRebellionOrganize._actCalcelCallback = cancelAction; ctrlRebellionOrganize.Setup(); return(ctrlRebellionOrganize); }
protected override bool Init() { DebugUtils.Log("TaskRebellionOrganize", string.Empty); _ctrlRebellionOrganize = CtrlRebellionOrganize.Instantiate(((Component)prefabRebellionOrganizeCtrl).GetComponent <CtrlRebellionOrganize>(), StrategyTaskManager.GetOverView(), DecideSortieStart, DecideCancel); return(true); }