From 939170f625e5928d5ca86a57796aaa23f25a4fa7 Mon Sep 17 00:00:00 2001 From: Carson Katri Date: Sat, 12 Jun 2021 16:55:43 -0400 Subject: Smooth leg animation --- Assets/Scripts/Controllers/GameController.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Assets/Scripts/Controllers/GameController.cs') 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; + /// /// When dribbling, move the ball with the player. /// -- cgit v1.2.3-56-ge451