Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- [CreateAssetMenu(fileName = "Settings", menuName = "Data/Settings", order = 1)]
- public class Settings : ScriptableObject
- {
- [Header("Mouse")]
- public Vector2 MouseSensitivity = new Vector2(2, 2);
- public bool InvertMouseX = false, InvertMouseY = false;
- [Header("Keyboard")]
- public Action MoveForward = new Action(KeyCode.W, KeyCode.UpArrow);
- public Action MoveBackward = new Action(KeyCode.S, KeyCode.DownArrow);
- public Action MoveRight = new Action(KeyCode.D, KeyCode.RightArrow);
- public Action MoveLeft = new Action(KeyCode.A, KeyCode.LeftArrow);
- }
Advertisement
Add Comment
Please, Sign In to add comment