small fixes

This commit is contained in:
2023-04-03 23:22:37 -04:00
parent 4c8c98385c
commit 3586ee1e48
4 changed files with 37 additions and 10 deletions

View File

@ -91,7 +91,7 @@ public class DoorInteractable : HeavyItemReceiver
else if(insertedCore!=null&&heavyInvent==null)
{
heavyInvent = insertedCore;
print("Picked up:" + heavyInvent.name);
insertedCore = null;
//get ref of player perhaps
return true;

View File

@ -54,6 +54,7 @@ public class PlayerAnimationController : MonoBehaviour
{
animController.SetBool("IsCarrying", interactionHandler.IsCarrying);
animController.SetBool("HasGun",interactionHandler.GunEnabled);
print("carrying:" + interactionHandler.IsCarrying + " running:"+animController.GetBool(runningParameter)+" running speed:" + animController.GetFloat(runningSpeedParameter));
}
}

View File

@ -68,9 +68,9 @@ public class PlayerInteractionHandler : MonoBehaviour
// Update is called once per frame
void Update()
{
if(Input.GetButtonDown("Fire1"))
{
if (this.GunEnabled)