diff options
author | Carson Katri <carson.katri@gmail.com> | 2021-06-12 16:55:43 -0400 |
---|---|---|
committer | Carson Katri <carson.katri@gmail.com> | 2021-06-12 16:55:43 -0400 |
commit | 939170f625e5928d5ca86a57796aaa23f25a4fa7 (patch) | |
tree | db7d4672a634a38bccbb448563f4387daef4beab /Assets/Scripts/Controllers/GameController.cs | |
parent | 6bd59f3f902328c5c2ac19f0a03abb1194c113c9 (diff) | |
download | gmtk-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.cs | 2 |
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> |