Entry.cs 449 B

1234567891011121314151617
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.SceneManagement;
  5. public class Entry : MonoBehaviour
  6. {
  7. // Start is called before the first frame update
  8. void Start()
  9. {
  10. if (LoginMgr.CheckAutoLogin()) {
  11. SceneManager.LoadScene("Home", LoadSceneMode.Single);
  12. } else {
  13. SceneManager.LoadScene("Login", LoadSceneMode.Single);
  14. }
  15. }
  16. }