Пример #1
0
        public bool Destroy(int entityId)
        {
            if (entityId == IdGenerator.Invalid)
            {
                Debug.Log("<color=green>Invalid entity id:" + entityId + "</color>");
                return(false);
            }

            PeEntity entity = EntityMgr.Instance.Get(entityId);

            if (null == entity)
            {
                //Debug.LogError("cant find entity with id:" + entityId);
                return(false);
            }

            Remove(entityId);

            return(PeEntity.Destroy(entity));
        }