Beispiel #1
0
    void Start()
    {
#if UNITY_EDITOR
        //Memberinfo.SetInstance(null);
        Memberinfo.ClearInstance();
#endif

        if (Memberinfo.Instance == null)
        {
            Main.SetActive(true);
            IdField.ActivateInputField();
            Summit.onClick.AddListener(() =>
            {
                if (string.IsNullOrEmpty(IdField.text))
                {
                    ShowPopup("กรุณาใส่ ID ของคุณ");
                }
                else
                {
                    Debug.Log("ok");
                    StartCoroutine(DownloadARData(IdField.text));
                }
            });
        }
        else
        {
            SceneManager.LoadScene("AR");
        }
    }
Beispiel #2
0
 public void BackToRegister()
 {
     Memberinfo.ClearInstance();
     SceneManager.LoadScene("Register");
 }