using System; 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 - [Serializable] // make sure you have Using System at the top; so these options will show up on the camera controller and player controller public class CameraSettingsModel { [Header("Camera Settings")] public float SensitivityX; public bool InvertedX; public float SensitivityY; public bool InvertedY; public float ViewClampYMin; public float ViewClampYMax; [Header("Character")] public float CharacterRotationSmoothDamp = 1f; } [Serializable] // make sure you have Using System at the top; so these options will show up on the player controller and player controller public class PlayerSettingsModel { public float CharacterRotationSmoothDamp = 0.6f; [Header("Movement Speeds")] public float WalkingSpeed; public float RunningSpeed; public float WalkingBackwardSpeed; public float RunningBackwardSpeed; public float WalkingStrafingSpeed; public float RunningStrafingSpeed; public float SprintingSpeed; } [Serializable] public class PlayerStatsModel { public float Stamina; public float MaxStamina; public float StaminaDrain; public float StaminaRegain; public float StaminaDelay; // how long in seconds until stamina begins to regain public float StaminaCurrentDelay; } #endregion }