2023-11-22 12:34:04 +00:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class GlobalData : MonoSingleton<GlobalData>
|
2023-11-21 10:28:27 +00:00
|
|
|
|
{
|
2023-11-22 12:34:04 +00:00
|
|
|
|
private PositionType _position = PositionType.None;
|
|
|
|
|
private int _cameraIndex = 0;
|
|
|
|
|
private CameraDeviceType _cameraDeviceType;
|
|
|
|
|
|
|
|
|
|
public PositionType Position { get => _position; internal set => _position = value; }
|
2023-11-21 10:28:27 +00:00
|
|
|
|
|
2023-11-22 12:34:04 +00:00
|
|
|
|
public int CameraIndex { get => _cameraIndex; internal set => _cameraIndex = value; }
|
|
|
|
|
public CameraDeviceType CameraDeviceType { get => _cameraDeviceType; set => _cameraDeviceType = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum CameraDeviceType
|
|
|
|
|
{
|
|
|
|
|
System,
|
|
|
|
|
USB,
|
2023-11-21 10:28:27 +00:00
|
|
|
|
}
|