Ejemplo n.º 1
0
        GameObject GetPrefab()
        {
            if (objectToPlace != null)
            {
                return(objectToPlace);
            }

            if (string.IsNullOrEmpty(prefabInfo.collection) || string.IsNullOrEmpty(prefabInfo.name))
            {
                return(null);
            }

            return(PrefabReferenceCollection.GetPrefabReference(prefabInfo));
        }