Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class InputController : MonoBehaviour {
- public float Vertical;
- public float Horizontal;
- public Vector2 MouseInput;
- public bool Fire1;
- public bool Reload;
- void Update() {
- Vertical = Input.GetAxis ("Vertical");
- Horizontal = Input.GetAxis ("Horizontal");
- MouseInput = new Vector2 (Input.GetAxisRaw ("Mouse X"), Input.GetAxisRaw ("Mouse Y"));
- Fire1 = Input.GetButton ("Fire1");
- Reload = Input.GetKey(KeyCode.R);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement