Compare commits

...

2 Commits

@ -273,7 +273,7 @@ MonoBehaviour:
m_GameObject: {fileID: 221552279}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 81c8f8fc5fda9f84b9acecdb071be4db, type: 3}
m_Script: {fileID: 11500000, guid: 7075d8cc44c60404c9498235097a7670, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1610526387
@ -393,6 +393,7 @@ GameObject:
- component: {fileID: 1779447996}
- component: {fileID: 1779447995}
- component: {fileID: 1779447994}
- component: {fileID: 1779447997}
m_Layer: 5
m_Name: Quit
m_TagString: Untagged
@ -463,7 +464,19 @@ MonoBehaviour:
m_TargetGraphic: {fileID: 1779447995}
m_OnClick:
m_PersistentCalls:
m_Calls: []
m_Calls:
- m_Target: {fileID: 221552284}
m_TargetAssemblyTypeName: Quitscript, Assembly-CSharp
m_MethodName: QuitGame
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
--- !u!114 &1779447995
MonoBehaviour:
m_ObjectHideFlags: 0
@ -502,6 +515,18 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1779447992}
m_CullTransparentMesh: 1
--- !u!114 &1779447997
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1779447992}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7075d8cc44c60404c9498235097a7670, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1989443924
GameObject:
m_ObjectHideFlags: 0

@ -0,0 +1,12 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Quitscript : MonoBehaviour
{
public void QuitGame()
{
Application.Quit();
Debug.Log("Quit!");
}
}

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 7075d8cc44c60404c9498235097a7670
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Loading…
Cancel
Save