public GameObject PopFromPool(string itemName, Transform parent = null) { AvatarObj pool = GetPoolItem(itemName); if (pool == null) { return(null); } return(pool.PopFromAvatar(parent)); }
public bool PushToPool(string itemName, GameObject item, Transform parent = null) { AvatarObj pool = GetPoolItem(itemName); if (pool == null) { return(false); } pool.PushToAvatar(item, parent == null ? transform : parent); return(true); }
public void PreencherInfo(Texture2D textura, string modulo, AvatarObj pnlCharacter) { if (textura == null) { ImgItem.enabled = false; } else { ImgItem.texture = textura; } this.pnlCharacter = pnlCharacter; this.modulo = modulo; }
private void Awake() { Avatar = Instantiate(Avatar, PnlAvatar); }