etienne cella
5 年前
当前提交
2ad3b555
共有 3 个文件被更改,包括 78 次插入 和 6 次删除
-
55Assets/Scenes/Demo/Demo.unity
-
18Assets/ClusterDisplay/Scripts/ExitApp.cs
-
11Assets/ClusterDisplay/Scripts/ExitApp.cs.meta
|
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
|
|||
public class ExitApp : MonoBehaviour |
|||
{ |
|||
void Update() |
|||
{ |
|||
if (Input.GetKey(KeyCode.LeftControl) && Input.GetKeyDown(KeyCode.Q)) |
|||
{ |
|||
#if UNITY_EDITOR
|
|||
UnityEditor.EditorApplication.ExitPlaymode(); |
|||
#else
|
|||
Application.Quit(); |
|||
#endif
|
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 01a3195b490fba7429f68693486c86c3 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue