PoggyBird/Assets/Web3Unity/Scripts/Prefabs/WebGL/WebGLSignOut.cs
2023-02-28 19:02:09 +05:30

17 lines
400 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
#if UNITY_WEBGL
public class WebGLSignOut : MonoBehaviour
{
public void OnSignOut()
{
// Clear Account
PlayerPrefs.SetString("Account", "0x0000000000000000000000000000000000000001");
// go to login scene
SceneManager.LoadScene(0);
}
}
#endif