OnlinePKTest.cs 448 B

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