OnlinePKTest.cs 412 B

12345678910111213141516
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class OnlinePKTest : MonoBehaviour
  5. {
  6. public static bool isOpen = false;
  7. public static void Init() {
  8. if (!isOpen) return;
  9. Debug.Log("联机PK测试初始化");
  10. #if UNITY_EDITOR
  11. GlobalData.pkMatchType = PKMatchType.OnlinePK;
  12. GameMgr.gameType = 12;
  13. #endif
  14. }
  15. }