Ejemplo n.º 1
0
            public static bool RemoveFromPkg(this PeEntity entity, int prototypeId, int count)
            {
                PlayerPackageCmpt pkg = entity.GetCmpt <PlayerPackageCmpt>();

                if (null == pkg)
                {
                    return(false);
                }

                return(pkg.Destory(prototypeId, count));
            }