Add GameState to keep track of state and wave #
This commit is contained in:
@@ -5,9 +5,11 @@ public class Teo : MonoBehaviour
|
||||
public float health = 100F;
|
||||
public float moveSpeed = 10F;
|
||||
Rigidbody2D controller;
|
||||
GameState gameState;
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start() {
|
||||
controller = GetComponent<Rigidbody2D>();
|
||||
gameState = GameObject.FindGameObjectWithTag("GameController").GetComponent<GameState>();
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
|
||||
Reference in New Issue
Block a user