コード例 #1
0
    public GameObject PopFromPool(string itemName, Transform parent = null)
    {
        AvatarObj pool = GetPoolItem(itemName);

        if (pool == null)
        {
            return(null);
        }

        return(pool.PopFromAvatar(parent));
    }
コード例 #2
0
    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);
    }
コード例 #3
0
    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;
    }
コード例 #4
0
ファイル: GrupoObj.cs プロジェクト: vitorric/comanda_app
 private void Awake()
 {
     Avatar = Instantiate(Avatar, PnlAvatar);
 }