public void Dispose() { for (int i = 0; i < arrayBind.Length; i++) { AutoBinding abind = arrayBind[i]; if (null != abind) { abind.cacheObj = null; } } arrayBind = null; }
public AutoBinding this[string key] { get { for (int i = 0; i < arrayBind.Length; i++) { AutoBinding abind = arrayBind[i]; if (abind.name == key) { return(abind); } } Debug.LogErrorFormat("not find autoBinding key = {0}!!!", key); return(null); } }