Organize custom scripts and Shared under Assets/Scripts, and delete assembly definition files
This commit is contained in:
42
Assets/Scripts/Baba_yaga/GameSetup/GameSettings.cs
Normal file
42
Assets/Scripts/Baba_yaga/GameSetup/GameSettings.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Baba_yaga
|
||||
{
|
||||
[CreateAssetMenu(fileName = "GameSettings", menuName = "BABA_YAGA/Settings/GameSettings")]
|
||||
[UnityEngine.Scripting.APIUpdating.MovedFrom(true, sourceNamespace: "OnlyScove.Scripts", sourceAssembly: "Opsive.UltimateCharacterController")]
|
||||
public class GameSettings : ScriptableObject
|
||||
{
|
||||
[BoxGroup("Camera")]
|
||||
[PropertyRange(0.1f, 10f)]
|
||||
public float sensitivity = 1.0f;
|
||||
|
||||
[BoxGroup("Camera")]
|
||||
public bool invertX = false;
|
||||
|
||||
[BoxGroup("Camera")]
|
||||
public bool invertY = false;
|
||||
|
||||
[BoxGroup("Camera")]
|
||||
public bool sideBiasRight = true; // true for Right, false for Left
|
||||
|
||||
[BoxGroup("Camera")]
|
||||
[PropertyRange(40f, 110f)]
|
||||
public float fieldOfView = 60f;
|
||||
|
||||
[ShowInInspector]
|
||||
[ReadOnly]
|
||||
[BoxGroup("Camera")]
|
||||
private string SideBias => sideBiasRight ? "Right" : "Left";
|
||||
|
||||
[Button("Reset Defaults")]
|
||||
private void ResetDefaults()
|
||||
{
|
||||
sensitivity = 1.0f;
|
||||
invertX = false;
|
||||
invertY = false;
|
||||
sideBiasRight = true;
|
||||
fieldOfView = 60f;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user