collect coins

This commit is contained in:
2023-02-27 12:09:47 +01:00
parent ccc3303f97
commit f594e3e415
10 changed files with 2411 additions and 215 deletions

View File

@@ -12,7 +12,7 @@ public class GroundController : MonoBehaviour
private CollectibleSpawner cs;
private void Awake() {
cs = FindObjectOfType<CollectibleSpawner>();
//cs = FindObjectOfType<CollectibleSpawner>();
//Loading modules
loadFrom = LoadPrefabs("Prefabs/Modulok");
sideObjects = LoadPrefabs("Models/World Objects/World 1");
@@ -48,7 +48,7 @@ public class GroundController : MonoBehaviour
}
}
cs.SpawnCoin();
//cs.SpawnCoin();
}
private GameObject[] LoadPrefabs(string path){ //toltese be a palya objecteket a resources mappabol pl: "Prefabs/Modulok"