webgl版初始化
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Deconstruction.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Xeric 库的运行时辅助类库
|
||||
/// </summary>
|
||||
public static class XericHelper
|
||||
{
|
||||
#region 程序运行
|
||||
|
||||
/// <summary>
|
||||
/// 离开出游戏模式(在编辑模式时仅退出)
|
||||
/// </summary>
|
||||
public static void ExitGameMode()
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
if (Application.isPlaying)
|
||||
{
|
||||
UnityEditor.EditorApplication.ExitPlaymode();
|
||||
}
|
||||
#else
|
||||
Application.Quit();
|
||||
#endif
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4c85b7877e75184469d9a093230ca95a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user