diff --git a/Assets/Scripts/StickSpawner.cs b/Assets/Scripts/StickSpawner.cs index a25164a..03c8376 100644 --- a/Assets/Scripts/StickSpawner.cs +++ b/Assets/Scripts/StickSpawner.cs @@ -52,11 +52,11 @@ public class StickSpawner : MonoBehaviour { LastSpawnedWasCasette = false; } CanSpawnNew = false; - var Stick = GameObject.Instantiate(SpawnedThing, transform.position + Vector3.up * 2, Random.rotation); + var Spawned = GameObject.Instantiate(SpawnedThing, transform.position + Vector3.up * 2, Random.rotation); if (LastSpawnedWasCasette) { - + SpawnedCasette = Spawned.GetComponent(); } else { - SpawnedStick = Stick.GetComponent(); + SpawnedStick = Spawned.GetComponent(); } }