Ejemplo n.º 1
0
    public void DestroyEntity(int entityId)
    {
        LogicEntity entity = GetEntity(entityId);

        entity.Destroy();
        if (isTicking)
        {
            waitRemoveId.Add(entityId);
        }
        else
        {
            allEntitys.Remove(entityId);
        }
    }