Exemple #1
0
 private void GrabPOIPrefabs()
 {
     GameObject[] objects = Resources.LoadAll <GameObject>("PointsOfInterest");
     foreach (GameObject o in objects)
     {
         PointOfInterest poi = o.GetComponent <PointOfInterest>();
         _pointOfInterestPrefabs.Add(poi.GetPOIType(), poi);
     }
 }