I have an UI button with this simple script
<using System.Collections;
using System.Collections.Generic;
using UnityEngine.InputSystem;
using UnityEngine;
namespace Bando
{
public class UIButton_QuitGame : MonoBehaviour
{
public void EndGame()
{
//StartCoroutine(QuitAfterDelay());
Debug.Log(“Quitting the game…”);
Application.Quit();
}
}
}>
when calling the function with the button onclick(), the game quits but it crashes and closes instead of just a clean quit, ill attach the crash log, please help!