Exemple #1
0
 private void OnDestroy()
 {
     prefabRebellionOrganizeCtrl = null;
     _ctrlRebellionOrganize      = null;
     strategyDialog     = null;
     CancelDialogButton = null;
 }
Exemple #2
0
 private void OnDestroy()
 {
     this.prefabRebellionOrganizeCtrl = null;
     this._ctrlRebellionOrganize      = null;
     this.strategyDialog     = null;
     this.CancelDialogButton = null;
 }
Exemple #3
0
 protected override bool UnInit()
 {
     DebugUtils.Log("TaskRebellionOrganize", string.Empty);
     if (_ctrlRebellionOrganize != null && _ctrlRebellionOrganize.gameObject != null)
     {
         _ctrlRebellionOrganize.gameObject.Discard();
     }
     _ctrlRebellionOrganize = null;
     return(true);
 }
Exemple #4
0
 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);
        }
Exemple #6
0
        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);
        }
Exemple #7
0
 protected override bool Init()
 {
     DebugUtils.Log("TaskRebellionOrganize", string.Empty);
     _ctrlRebellionOrganize = CtrlRebellionOrganize.Instantiate(((Component)prefabRebellionOrganizeCtrl).GetComponent <CtrlRebellionOrganize>(), StrategyTaskManager.GetOverView(), DecideSortieStart, DecideCancel);
     return(true);
 }