Hopefully there's okay comments on things now

This commit is contained in:
2024-10-20 02:47:43 -07:00
parent eb47adf2d2
commit fd6657047b
6 changed files with 35 additions and 9 deletions

View File

@@ -24,8 +24,10 @@ public class GameState : MonoBehaviour
}
public void NewWave() {
// Spawn ratbots around the player
// Amount, health, and damage scale with waves
state = "WAVE";
Vector3 playerPosition = GameObject.FindGameObjectWithTag("Player").GetComponent<Teo>().transform.position;
Vector3 playerPosition = GameObject.FindGameObjectWithTag("Player").transform.position;
for (uint _ = 0; _ < wave; _++) {
GameObject newRatbot = Instantiate(
ratbot,