TO SQUASH: Yummy text on get.
This commit is contained in:
@@ -8,6 +8,8 @@ public class CakeSpawner : Spawner
|
||||
|
||||
public WorldFiller worldFiller;
|
||||
|
||||
public Canvas canvas;
|
||||
|
||||
private Bounds cakeBounds;
|
||||
|
||||
private Bounds gameBoardBounds;
|
||||
@@ -48,6 +50,7 @@ public class CakeSpawner : Spawner
|
||||
if (Random.value < spawnProbability)
|
||||
{
|
||||
GameObject cake = Instantiate(cakePrefab, spawnPosition, Quaternion.identity);
|
||||
cake.GetComponent<YummyCake>().canvas = canvas;
|
||||
}
|
||||
|
||||
spawned = true;
|
||||
|
||||
Reference in New Issue
Block a user