using System; using System.Collections.Generic; using UnityEngine; public static class scr_Models // a static class is essentially a library of data or functions you want performed, but you don't want an actual object of that type to exist. { #region - Player - public enum PlayerStance // an enum is like a dropdown list { Stand, Crouch, Prone } [Serializable] // make sure you have "using System;" at the top; makes this show up on the character controller script in unity public class PlayerSettingsModel { [Header("View Settings")] public float ViewXSensitivity; public float ViewYSensitivity; public bool ViewXInverted; public bool ViewYInverted; [Header("Movement Settings")] public float WalkingForwardSpeed; public float WalkingBackwardSpeed; public float WalkingStrafeSpeed; [Header("Jumping")] public float JumpingHeight; public float JumpingFalloff; // time it takes for us to reach our peak and then start falling down } [Serializable] public class CharacterStance { public float CameraHeight; public CapsuleCollider StanceCollider; } #endregion }