2025-01-14 15:34:07 +08:00

54 lines
1.5 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;
public bool _loopPopExplain = true;
public bool _IsFirstFreeCamera = true;
protected override void AwakeSelf()
{
base.AwakeSelf();
_DataNiuHandler = new DataNiuHandler();
_StateContext.SetState(new HomeState(_StateContext));
_EventManager = new EventManager();
}
private void Update()
{
if (Input.GetKeyDown(KeyCode.Escape))
{
UtilitiesMng.CustomQuit();
}
}
}
}