WebGLSignOut.cs 400 B

1234567891011121314151617
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.SceneManagement;
  5. #if UNITY_WEBGL
  6. public class WebGLSignOut : MonoBehaviour
  7. {
  8. public void OnSignOut()
  9. {
  10. // Clear Account
  11. PlayerPrefs.SetString("Account", "0x0000000000000000000000000000000000000001");
  12. // go to login scene
  13. SceneManager.LoadScene(0);
  14. }
  15. }
  16. #endif