prepped aiming
This commit is contained in:
@ -42,6 +42,10 @@ public class PlayerAnimationController : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
public void Hit()
|
||||
{
|
||||
animController.SetTrigger("WasHit");
|
||||
}
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
@ -54,7 +58,8 @@ 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));
|
||||
|
||||
//print("carrying:" + interactionHandler.IsCarrying + " running:"+animController.GetBool(runningParameter)+" running speed:" + animController.GetFloat(runningSpeedParameter));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -205,6 +205,9 @@ public class PlayerInteractionHandler : MonoBehaviour
|
||||
if (this.GunEnabled)
|
||||
{
|
||||
this.DisableFlashlight();
|
||||
|
||||
float aimAxis = Input.GetAxis("Aim");
|
||||
print("Aim:" + aimAxis);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user