|
@@ -101,9 +101,17 @@ public class HomeView : MonoBehaviour
|
|
|
switch (target)
|
|
switch (target)
|
|
|
{
|
|
{
|
|
|
case "开始游戏":
|
|
case "开始游戏":
|
|
|
|
|
+ if (!BluetoothStatus.IsAllConnected()) {
|
|
|
|
|
+ PopupMgr.ins.ShowTip("请先连接设备");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
GameObject.Instantiate(GameObject.Find("WindowViews").transform.Find("GameStartView").gameObject).SetActive(true);
|
|
GameObject.Instantiate(GameObject.Find("WindowViews").transform.Find("GameStartView").gameObject).SetActive(true);
|
|
|
break;
|
|
break;
|
|
|
case "联机游戏":
|
|
case "联机游戏":
|
|
|
|
|
+ if (!BluetoothStatus.IsAllConnected()) {
|
|
|
|
|
+ PopupMgr.ins.ShowTip("请先连接设备");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
GlobalDataTemp.pkMatchType = PKMatchType.OnlinePK;
|
|
GlobalDataTemp.pkMatchType = PKMatchType.OnlinePK;
|
|
|
GameObject.Instantiate(GameObject.Find("WindowViews").transform.Find("PKGameOptionView").gameObject).SetActive(true);
|
|
GameObject.Instantiate(GameObject.Find("WindowViews").transform.Find("PKGameOptionView").gameObject).SetActive(true);
|
|
|
break;
|
|
break;
|