diff --git a/unity_Project/Assets/Character/Character_Animation.controller b/unity_Project/Assets/Character/Character_Animation.controller index 0db0ede..ac4b8e5 100644 Binary files a/unity_Project/Assets/Character/Character_Animation.controller and b/unity_Project/Assets/Character/Character_Animation.controller differ diff --git a/unity_Project/Assets/Scripts/magnetGun.cs b/unity_Project/Assets/Scripts/magnetGun.cs index 89bd9b2..451a008 100644 --- a/unity_Project/Assets/Scripts/magnetGun.cs +++ b/unity_Project/Assets/Scripts/magnetGun.cs @@ -156,6 +156,10 @@ public class magnetGun : MonoBehaviour { if (item.tag == "moveable"){ + + playerController.animator.SetBool("Holding",true); + //playerController.animator.SetTrigger("startHolding"); + originalConstrants = item.attachedRigidbody.constraints; originalGravity = item.attachedRigidbody.useGravity; @@ -212,6 +216,8 @@ public class magnetGun : MonoBehaviour { private void dropItem(Collider item){ if (item != null) { + playerController.animator.SetBool("Holding",false); + item.attachedRigidbody.useGravity = originalGravity; item.attachedRigidbody.drag = 0.0f; item.attachedRigidbody.constraints = originalConstrants;