Tanoda
WebGLQuit.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using System.Runtime.InteropServices;
4using UnityEngine;
5
6public class WebGLQuit : MonoBehaviour
7{
8 [DllImport("__Internal")]
9 private static extern void closeWindow();
10
11 private void Start()
12 {
13 HttpCookie.RemoveCookie("unsavedChanges");
14 HttpCookie.RemoveRootCookie("unsavedChanges");
15 }
16
17 public void Quit()
18 {
19 closeWindow();
20 }
21}
void Quit()
Definition: WebGLQuit.cs:17