mirror of
https://github.com/tetreum/brickcraft.git
synced 2026-02-21 10:50:18 -06:00
+ Marry building system with world terrain - phase 1
This commit is contained in:
@@ -83,6 +83,7 @@ namespace Brickcraft
|
||||
public const float brickWidth = 0.796f; // 2x2
|
||||
|
||||
public GameObject[] prefabs;
|
||||
public GameObject playerPrefab;
|
||||
|
||||
void Awake() {
|
||||
Instance = this;
|
||||
@@ -97,6 +98,10 @@ namespace Brickcraft
|
||||
}
|
||||
}
|
||||
|
||||
public void spawnPlayer () {
|
||||
Instantiate(playerPrefab, new Vector3(0, 160, 0), Quaternion.identity);
|
||||
}
|
||||
|
||||
void processPrefabs() {
|
||||
foreach (var prefab in prefabs) {
|
||||
brickPrefabs.Add(prefab.name, prefab);
|
||||
|
||||
Reference in New Issue
Block a user