public override void Initialize(PlatInstance plat) { if (!_isInitialize) { _isInitialize = true; this._plat = plat; InitilizeButtonComponent(); this.SetState(ButtonColorEnum.NORMALL); this._isLock = true; if (onInitilize != null) { onInitilize(this, new EventArgs()); } if (isDebug) { Debug.Log(string.Format("[Button: {0}]Initialize done.", ID)); } } else { if (isDebug) { Debug.Log(string.Format("[Button: {0}]I already initialize.", ID)); } } }
public void RegistPlat(PlatInstance plat) { if (platList.ContainsKey(plat.ID)) { platList.Remove(plat.ID); if (_isDebug) { Debug.Log(string.Format("{0}移除重覆的介面[{1}]", _debugName, plat.ID)); } } plat.Initialize(); this.platList.Add(plat.ID, plat); }
public abstract void Initialize(PlatInstance plat);