Organization of Game Files

Created folder for C# files, player, and enemy so it's a little cleaner...
This commit is contained in:
Iazubi
2024-10-23 17:28:44 -07:00
parent 9494eb1e34
commit 0a4d0e9c86
47 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using UnityEngine;
public class WaveIndicator : MonoBehaviour
{
GameState gameState;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
gameState = GameObject.FindGameObjectWithTag("GameController").GetComponent<GameState>();
}
// Update is called once per frame
void Update()
{
GetComponent<TMPro.TMP_Text>().text = "Wave: "+gameState.wave;
}
}