shenjianxing 6b341ae2b4 适配VR
2025-04-01 16:16:45 +08:00

59 lines
1.6 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using CG.Framework;
using CG.UTility;
using System;
/********************************************************************************
*Create By CG
*Function
*********************************************************************************/
namespace ZXK.LouDiXvMuNiu
{
public class GameManager : MonoSingleton<GameManager>
{
[MyReadOnly]//当前程序正在进行的系统类型
public string _CurModelType = "";
[MyReadOnly]//当前程序是否处于实训模式
public bool _IsTrain = true;
public string _StudentName;
public string _StudentNumber;
public DataNiuHandler _DataNiuHandler = null;
public EventManager _EventManager = null;
public readonly StateContext _StateContext = new StateContext();
//当前app声音
[System.NonSerialized]
public float _CurAppVoice = 0.5f;
//当前app鼠标灵敏度
[System.NonSerialized]
public float _CurMouseFlexible = 50.0f;
[System.NonSerialized]
public bool _loopPopExplain = true;
public bool _IsFirstFreeCamera = true;
protected override void AwakeSelf()
{
base.AwakeSelf();
}
private void Start()
{
_DataNiuHandler = new DataNiuHandler();
_StateContext.SetState(new HomeState(_StateContext));
_EventManager = new EventManager();
}
private void Update()
{
if (Input.GetKeyDown(KeyCode.Escape))
{
UtilitiesMng.CustomQuit();
}
}
}
}