// Use this for initialization void Start() { //游戏状态 MyClass.gameState = GameState.Load; //如果是IOS平台 #if (IOS_SDK) //页面跟踪 SdkToU3d.TrackPageBeginWithName("Menu"); #endif //首页界面允许点击 menuInterfaceClickEnable = true; //设置界面允许点击 settingInterfaceClickEnable = true; //根据屏幕宽高比,计算左右墙壁的本地位置 leftWall.anchoredPosition3D = new Vector3(-50 - Camera.main.aspect * 4000 / 6, 255, 0); rightWall.anchoredPosition3D = new Vector3(50 + Camera.main.aspect * 4000 / 6, 255, 0); //刷新首页中的玩家角色 RefreshMenuPlayer(); }