- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- /* 联机游戏-为了方便测试可直接运行游戏场景 */
- public class OnlinePKTest : MonoBehaviour
- {
- public static bool isOpen = false;
- public static void Init() {
- if (!isOpen) return;
- Debug.Log("联机PK测试初始化");
- #if UNITY_EDITOR
- GlobalData.pkMatchType = PKMatchType.OnlinePK;
- GameMgr.gameType = 12;
- #endif
- }
- }
|