diff options
| author | Carson Katri <carson.katri@gmail.com> | 2021-06-13 00:06:15 -0400 |
|---|---|---|
| committer | Carson Katri <carson.katri@gmail.com> | 2021-06-13 00:06:15 -0400 |
| commit | 2fd846835d2460a12c321c460e77fd6026eb07a0 (patch) | |
| tree | 2dda1d0b06ddcfbdc4c67904a7dd3ad057289cd7 /Assets/Scripts/Controllers/AIController.cs | |
| parent | c500c71d07756d5f4bee8644fa6eb9a95e354b0e (diff) | |
| download | gmtk-gamejam-2fd846835d2460a12c321c460e77fd6026eb07a0.tar.gz gmtk-gamejam-2fd846835d2460a12c321c460e77fd6026eb07a0.zip | |
Add respawning after each point
Diffstat (limited to 'Assets/Scripts/Controllers/AIController.cs')
| -rw-r--r-- | Assets/Scripts/Controllers/AIController.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Assets/Scripts/Controllers/AIController.cs b/Assets/Scripts/Controllers/AIController.cs index 9d3d77b..ad258f3 100644 --- a/Assets/Scripts/Controllers/AIController.cs +++ b/Assets/Scripts/Controllers/AIController.cs @@ -61,6 +61,8 @@ namespace Controllers private void Update() { + if (game.freezeMotion) return; + var movement = transform.position; if (!game.enemy.HasBall) // Move towards the ball to grab it. |
