Health/Assets/Scripts/Service/GlobalData.cs

21 lines
607 B
C#
Raw Normal View History

2023-11-22 12:34:04 +00:00
using UnityEngine;
public class GlobalData : MonoSingleton<GlobalData>
{
2023-11-22 12:34:04 +00:00
private PositionType _position = PositionType.None;
private int _cameraIndex = 0;
2023-11-24 12:04:16 +00:00
private bool _isEstimationDebugMode = true;
2023-11-22 12:34:04 +00:00
public PositionType Position { get => _position; internal set => _position = value; }
2023-11-22 12:34:04 +00:00
public int CameraIndex { get => _cameraIndex; internal set => _cameraIndex = value; }
2023-11-24 18:39:53 +00:00
public bool IsEstimationPrintMode { get => _isEstimationDebugMode; internal set => _isEstimationDebugMode = value; }
2023-11-22 12:34:04 +00:00
}
2023-11-24 12:04:16 +00:00
public enum InputDeviceType
2023-11-22 12:34:04 +00:00
{
2023-11-24 12:04:16 +00:00
WebCamera,
USBCamera,
Video,
Pictures,
}