void SetParent(PlayerFindWindow parent) { m_Parent = parent; }
void OnDestroy() { m_Instance = null; }
public static PlayerFindItemLogic CreateItem(GameObject grid, GameObject resItem, string name, PlayerFindWindow parent) { if (null == resItem || null == grid || null == parent) { return(null); } GameObject curItem = Utils.BindObjToParent(resItem, grid, name); if (null != curItem) { PlayerFindItemLogic curItemComponent = curItem.GetComponent <PlayerFindItemLogic>(); if (null != curItemComponent) { curItemComponent.SetParent(parent); } return(curItemComponent); } return(null); }
void Awake() { m_Instance = this; }