using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Game
{
///
/// 运行模式
///
public enum EPlayMode
{
///
/// 编辑器下的模拟模式
///
EditorSimulateMode,
///
/// 离线运行模式
///
OfflinePlayMode,
///
/// 联机运行模式
///
HostPlayMode,
///
/// WebGL运行模式
///
WebPlayMode,
}
///
/// 游戏入口。
///
public partial class AppEntry : MonoBehaviour
{
//
/// 资源系统运行模式
///
public EPlayMode PlayMode = EPlayMode.EditorSimulateMode;
public static AppEntry Instance;
private void Awake()
{
Instance = this;
#if !UNITY_EDITOR
PlayMode = EPlayMode.WebPlayMode;
#endif
InitBuiltinComponents();
InitCustomComponents();
DontDestroyOnLoad(this);
}
}
}