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