Пример #1
0
        public Entity InstantiatePrefab(PrefabResource prefab, Vec3 pos, Quat rot, float scale)
        {
            int x = instantiatePrefab(instance_, prefab, pos, rot, scale);

            if (x < 0)
            {
                return(null);
            }
            return(new Entity(instance_, x));
        }
Пример #2
0
        public Entity InstantiatePrefab(PrefabResource prefab, Vec3 pos, Quat rot, float scale)
        {
            int entity_id = instantiatePrefab(instance_, prefab.__Instance, pos, rot, scale);

            return(getEntity(instance_, entity_id));
        }