Skip to content
Snippets Groups Projects
Commit fc2b5b9a authored by Heine, Eric R's avatar Heine, Eric R
Browse files

Made a new Util package for shared things with no clearly defined system with...

Made a new Util package for shared things with no clearly defined system with one script to begin with that quits a Unity application.
parent c77082e7
No related branches found
No related tags found
No related merge requests found
fileFormatVersion: 2
guid: cb0d4ce98064bd0499ad273cf3b33368
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
using UnityEngine;
namespace Shared.Util {
// Exits the application when told
public class ApplicationExit : MonoBehaviour {
// --------------------------------------------------------------------------
public void Exit() {
#if UNITY_EDITOR
// Make the Unity Editor stop playing
UnityEditor.EditorApplication.isPlaying = false;
#else
// Quit the running Unity application
Application.Quit();
#endif
}
}
}
fileFormatVersion: 2
guid: e637f027789c7f54186d7fc99ac125e3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
{
"name": "Shared.Util",
"references": [],
"optionalUnityReferences": [],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": []
}
\ No newline at end of file
fileFormatVersion: 2
guid: 0288e5f631bff9c40aee25083e8fea0d
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment