Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function PlayerStateController()
- {
- if ((Input.GetAxis("Vertical") !=0 || Input.GetAxis("Horizontal") !=0))
- {
- if (Input.GetButton("Sprint")&&!Input.GetButton("Fire2" && PlayerBossController.isGrounded && CanSprint == false)
- (
- PlayerState = 2;
- AimingIn = false;
- }
- else if (Input.GetMouseButton(1) && !Input.GetButton("Sprint"))
- {
- PlayerState = 3;
- AimingIn = true;
- }
- else
- {
- PlayerState = 1;
- AimingIn = false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement