Ejemplo n.º 1
0
        IAdaptable IResourceConverter.Convert(IResource resource)
        {
            Prefab prefab = resource as Prefab;

            if (prefab != null)
            {
                return(PrefabInstance.Create(prefab));
            }
            return(null);
        }
Ejemplo n.º 2
0
        IGameObject IResourceConverter.Convert(IResource resource)
        {
            Prefab prefab = resource as Prefab;

            if (prefab != null)
            {
                PrefabInstance instance = PrefabInstance.Create(prefab);
                return(instance.As <IGameObject>());
            }
            return(null);
        }