add:添加中控脚本
This commit is contained in:
@@ -4,6 +4,21 @@ using Common;
|
||||
using DarkTonic.MasterAudio;
|
||||
using Unity.XR.PXR;
|
||||
using UnityEngine;
|
||||
public enum GameKey
|
||||
{
|
||||
DinosaurPark2=0,//重返侏罗纪
|
||||
SpongeBob=1,//深海冒险
|
||||
XMen=2,//银河守护者
|
||||
KOF=3,//幻影交锋
|
||||
Valheim=4,//小小幻宠
|
||||
FutureMen=5,//未来战警
|
||||
AliceBall=6,//爱丽丝的舞会
|
||||
Zombie=7,//僵尸来了
|
||||
DefendNJ=8,//保卫金陵
|
||||
Loong=9, //巨龙猎人
|
||||
MRCS=10,//火力对决
|
||||
SXDMystery=11,//三星堆之谜
|
||||
}
|
||||
|
||||
public enum Place
|
||||
{
|
||||
@@ -73,6 +88,8 @@ public class GameLocal : MonoBehaviour
|
||||
[Header("场地")]
|
||||
public Place place = Place.Company1Floor;
|
||||
|
||||
public GameKey gameId;
|
||||
|
||||
public GameObject Scene;
|
||||
public GameObject Settle;
|
||||
public GameObject BlueWin;
|
||||
@@ -84,6 +101,7 @@ public class GameLocal : MonoBehaviour
|
||||
Application.targetFrameRate = 60;
|
||||
ConPanel.Show();
|
||||
BGMState.StateChange(0);
|
||||
gameId = GameKey.KOF;
|
||||
#if !UNITY_EDITOR && UNITY_ANDROID && PICO
|
||||
//PXRManager.enabled = true;
|
||||
ChangeMaterial(true);
|
||||
@@ -153,7 +171,7 @@ public class GameLocal : MonoBehaviour
|
||||
if (place == Place.Yunnan_Lincang_Linxiang_Hengji_Dixia)
|
||||
authInfo.shop = 25;
|
||||
#endif
|
||||
authInfo.gameId = 3;
|
||||
authInfo.gameId = (int) gameId;
|
||||
string authJson = JsonUtility.ToJson(authInfo);
|
||||
Debug.Log("发送数据 -> " + authJson);
|
||||
request.RawData = System.Text.Encoding.UTF8.GetBytes(authJson);
|
||||
|
||||
Reference in New Issue
Block a user