public bool UnInit()
 {
     Mem.Del(ref _uiButton);
     Mem.Del(ref _uiToggle);
     delDicideRebellionOrganizeSelectBtn = null;
     return(true);
 }
Ejemplo n.º 2
0
 public bool UnInit()
 {
     Mem.Del <UIButton>(ref this._uiButton);
     Mem.Del <UIToggle>(ref this._uiToggle);
     this.delDicideRebellionOrganizeSelectBtn = null;
     return(true);
 }
Ejemplo n.º 3
0
 public bool Init(RebellionFleetType iType, DelDicideRebellionOrganizeSelectBtn decideDelegate)
 {
     this._iType        = iType;
     this._uiLabel.text = this.GetLabelString(iType);
     this.index         = (int)iType;
     this.SetFleetInfo(null);
     this.delDicideRebellionOrganizeSelectBtn = decideDelegate;
     this._clsDelta.isFlasing = false;
     this.SetScale(iType);
     return(true);
 }
        public bool Init(DelDicideRebellionOrganizeSelectBtn decideDelegate, Action callback)
        {
            _delDicideRebellionOrganizeSelectBtn = decideDelegate;
            _actDecideSortieStart = callback;
            int cnt = 0;

            _listFleetInfos.ForEach(delegate(UIRebellionParticipatingFleetInfo x)
            {
                x.Init((RebellionFleetType)cnt, DecideParticipatingFleetInfo);
                cnt++;
            });
            _uiSortieStartBtn.Init(Enum.GetValues(typeof(RebellionFleetType)).Length, new System.Tuple <MonoBehaviour, string>(this, "DecideParticipatingFleetInfo"), DecideParticipatingFleetInfo);
            ChangeBtnState(0);
            return(true);
        }
 public bool Init(int nIndex, System.Tuple <MonoBehaviour, string> delegateInfos, DelDicideRebellionOrganizeSelectBtn decideDelegate)
 {
     index               = nIndex;
     _uiButton.onClick   = Util.CreateEventDelegateList(delegateInfos.Item1, delegateInfos.Item2, this);
     _uiButton.isEnabled = false;
     _uiButton.GetComponent <BoxCollider2D>().enabled = false;
     return(true);
 }
Ejemplo n.º 6
0
 public bool Init(int nIndex, Tuple <MonoBehaviour, string> delegateInfos, DelDicideRebellionOrganizeSelectBtn decideDelegate)
 {
     this.index               = nIndex;
     this._uiButton.onClick   = Util.CreateEventDelegateList(delegateInfos.get_Item1(), delegateInfos.get_Item2(), this);
     this._uiButton.isEnabled = false;
     this._uiButton.GetComponent <BoxCollider2D>().set_enabled(false);
     return(true);
 }