public static void LoadPrefabs() { hasPrefabs = false; prefabCollection = PrefabLoader.GetPrefabCollection(); if (prefabCollection != null) { hasPrefabs = true; } }
public static bool Load() { _prefabCollection = PrefabLoader.GetPrefabCollection(); if (prefabCollection != null) { _hasPrefabs = true; return(true); } _hasPrefabs = false; Debug.Log("Failed to load a prefab collection."); return(false); }
// INIT private void Initialize() { chunk_list = PrefabLoader.GetPrefabCollection("chunk"); player_distance_until_next_spawn = -chunk_width; }
// INIT private void Initialize() { background_object_list = PrefabLoader.GetPrefabCollection("background_object"); player_distance_until_next_spawn = -background_object_cap * background_object_gap_width; }