Files
BABA_YAGA/Assets/Scripts/GameSetup/GameSettings.cs

42 lines
1.1 KiB
C#
Raw Normal View History

2026-06-09 02:05:00 +07:00
using Sirenix.OdinInspector;
2026-04-26 00:27:56 +07:00
using UnityEngine;
namespace OnlyScove.Scripts
{
2026-06-08 23:25:33 +07:00
[CreateAssetMenu(fileName = "GameSettings", menuName = "BABA_YAGA/Settings/GameSettings")]
2026-04-26 00:27:56 +07:00
public class GameSettings : ScriptableObject
{
2026-06-09 02:05:00 +07:00
[BoxGroup("Camera")]
[PropertyRange(0.1f, 10f)]
2026-04-26 00:27:56 +07:00
public float sensitivity = 1.0f;
2026-06-09 02:05:00 +07:00
[BoxGroup("Camera")]
2026-04-26 00:27:56 +07:00
public bool invertX = false;
2026-06-09 02:05:00 +07:00
[BoxGroup("Camera")]
2026-04-26 00:27:56 +07:00
public bool invertY = false;
2026-06-09 02:05:00 +07:00
[BoxGroup("Camera")]
2026-04-26 00:27:56 +07:00
public bool sideBiasRight = true; // true for Right, false for Left
2026-06-09 02:05:00 +07:00
[BoxGroup("Camera")]
[PropertyRange(40f, 110f)]
2026-04-26 00:27:56 +07:00
public float fieldOfView = 60f;
2026-06-09 02:05:00 +07:00
[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;
}
2026-04-26 00:27:56 +07:00
}
}