public void ResetInfo(BridgeInfo info) { this.Info = new BridgeInfo(info.inNode, info.outNode, info.showModel, info.index); this.onCreate = null; this.onGet = null; this.onCallBack = null; this.dataQueue.Clear(); }
public void SetInPanel(IUIPanel parentPanel) { this.InPanel = parentPanel; if (InPanel != null) { Info = new BridgeInfo(parentPanel.Name, Info.outNode, Info.showModel, Info.index); } else { Info = new BridgeInfo("", Info.outNode, Info.showModel, Info.index); } }
public void Reset(IPanelBase parentPanel) { this.InPanel = parentPanel; this.onCreate = null; this.onGet = null; this.onCallBack = null; this.dataQueue.Clear(); if (InPanel != null) { Info = new BridgeInfo(parentPanel.Name, Info.outNode, Info.showModel, 0); } else { Info = new BridgeInfo("", Info.outNode, Info.showModel, 0); } }
public Bridge(BridgeInfo info, UnityAction <Bridge> onReleaseFromPool) { this.Info = info; this.onReleaseFromPool = onReleaseFromPool; }