aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Assets/Scripts/Controllers/GameController.cs
diff options
context:
space:
mode:
authorCarson Katri <carson.katri@gmail.com>2021-06-12 16:55:43 -0400
committerCarson Katri <carson.katri@gmail.com>2021-06-12 16:55:43 -0400
commit939170f625e5928d5ca86a57796aaa23f25a4fa7 (patch)
treedb7d4672a634a38bccbb448563f4387daef4beab /Assets/Scripts/Controllers/GameController.cs
parent6bd59f3f902328c5c2ac19f0a03abb1194c113c9 (diff)
downloadgmtk-gamejam-939170f625e5928d5ca86a57796aaa23f25a4fa7.tar.gz
gmtk-gamejam-939170f625e5928d5ca86a57796aaa23f25a4fa7.tar.zst
gmtk-gamejam-939170f625e5928d5ca86a57796aaa23f25a4fa7.zip
Smooth leg animation
Diffstat (limited to 'Assets/Scripts/Controllers/GameController.cs')
-rw-r--r--Assets/Scripts/Controllers/GameController.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Assets/Scripts/Controllers/GameController.cs b/Assets/Scripts/Controllers/GameController.cs
index c326c4e..9ae0ce8 100644
--- a/Assets/Scripts/Controllers/GameController.cs
+++ b/Assets/Scripts/Controllers/GameController.cs
@@ -40,6 +40,8 @@ namespace Controllers
private State dribble => isEnemy ? State.EnemyDribble : State.PlayerDribble;
private State shoot => isEnemy ? State.EnemyShoot : State.PlayerShoot;
+ public bool HasBall => controller.state == dribble;
+
/// <summary>
/// When dribbling, move the ball with the player.
/// </summary>