|
|
@@ -8,6 +8,17 @@ using UnityEngine.SceneManagement;
|
|
|
/* 程序启动入口 */
|
|
|
public class Entry : MonoBehaviour
|
|
|
{
|
|
|
+ void Awake()
|
|
|
+ {
|
|
|
+ //设置新装app初始语言
|
|
|
+ int curAppLanguage = PlayerPrefs.GetInt("AppLanguage", -1);
|
|
|
+ if (curAppLanguage != CommonConfig.AppLanguage) {
|
|
|
+ PlayerPrefs.SetInt("AppLanguage", CommonConfig.AppLanguage);
|
|
|
+ PlayerPrefs.SetInt("Language", CommonConfig.AppLanguage);
|
|
|
+ Debug.Log("SetAppLanguage");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
void Start()
|
|
|
{
|
|
|
Screen.orientation = ScreenOrientation.AutoRotation;//设置方向为自动(根据需要自动旋转屏幕朝向任何启用的方向。)
|