IAdaptable IResourceConverter.Convert(IResource resource) { Prefab prefab = resource as Prefab; if (prefab != null) { return(PrefabInstance.Create(prefab)); } return(null); }
IGameObject IResourceConverter.Convert(IResource resource) { Prefab prefab = resource as Prefab; if (prefab != null) { PrefabInstance instance = PrefabInstance.Create(prefab); return(instance.As <IGameObject>()); } return(null); }