예제 #1
0
    IEnumerator Start()
    {
                #if UNITY_ANDROID && !UNITY_EDITOR
        GameObject go = GameObject.Find("AndroidManager");
        androidManager = go.GetComponent <UXAndroidManager> ();
        androidManager.InitAndroid();
                #endif
        //CommonUtil.ScreenSettingsPortrait();

        if (UXPlayerLauncherController.Instance.IsConnected() == true)
        {
            if (UXConnectController.GetRoomNumber() != -1)
            {
                UXConnectController.SetRoomNumber(-1);
            }
            UXPlayerLauncherController.Instance.Clear();
        }

        playerController = UXPlayerController.Instance;

        yield return(CommonLang.instance);

        //chineseButton.SetActive(true);
        //englishButton.SetActive(true);
        //logoImage.SetActive(true);
        //ChinaButton ();
        EnglishButton();

                #if UNITY_ANDROID && !UNITY_EDITOR
        infoText.text = androidManager.GetVersionName("com.cspmedia.gamepartyplayer") + "/" + ((ServerList)PlayerPrefs.GetInt("ServerList"));
                #endif
    }
 void Awake()
 {
             #if UNITY_ANDROID && !UNITY_EDITOR
     GameObject go = GameObject.Find("AndroidManager");
     androidManager = go.GetComponent <UXAndroidManager> ();
     androidManager.InitAndroid();
             #endif
 }