| | |
| | | #endif
|
| | | using System.Collections.Generic;
|
| | | using System.Text;
|
| | | using Snxxz.UI;
|
| | |
|
| | | public class RuntimeLogUtility : MonoBehaviour
|
| | | {
|
| | |
| | | public static bool s_ShowZZAtkValue = false;
|
| | | public static bool s_ForceSupperHit = false;
|
| | | public static bool s_ForceLuckHit = false;
|
| | | public static bool s_LogProcessInfo = false;
|
| | | public static bool s_forceAutoFight
|
| | | {
|
| | | get
|
| | |
| | | if (GUILayout.Button("触发客户端触发器"))
|
| | | {
|
| | | // ClientSceneManager.Instance.TriggerTest(_triggerID);
|
| | | GA_NpcFunc.SetNpcFuncVisible(10104003, true);
|
| | | // GA_NpcFunc.SetNpcFuncVisible(10104003, true);
|
| | | }
|
| | | EditorGUILayout.EndHorizontal();
|
| | |
|
| | |
| | | if (GUILayout.Button("测试寻路"))
|
| | | {
|
| | | // Debug.Log(PathFinder.WalkAble(_start3, _end3));
|
| | | MapTransferUtility.Instance.MoveToNPC(10904012);
|
| | | // MapTransferUtility.Instance.MoveToNPC(10904012);
|
| | | MapTransferUtility.Instance.MoveToLocalMapPosition(new Vector2(_end3.x, _end3.z));
|
| | | }
|
| | |
|
| | | EditorGUILayout.LabelField("Log存储路径", RuntimeLogUtility.s_LogPath);
|
| | |
| | | RuntimeLogUtility.TEST_CLIENT_PVP_AI = EditorGUILayout.Toggle("模拟客户端PVP的AI状态", RuntimeLogUtility.TEST_CLIENT_PVP_AI);
|
| | | RuntimeLogUtility.s_ForceSupperHit = EditorGUILayout.Toggle("强制暴击", RuntimeLogUtility.s_ForceSupperHit);
|
| | | RuntimeLogUtility.s_ForceLuckHit = EditorGUILayout.Toggle("强制会心一击", RuntimeLogUtility.s_ForceLuckHit);
|
| | | RuntimeLogUtility.s_LogProcessInfo = EditorGUILayout.Toggle("输出AI流程控制", RuntimeLogUtility.s_LogProcessInfo);
|
| | |
|
| | | if (GUILayout.Button("创建PVP敌方"))
|
| | | {
|
| | | var _npc = GAMgr.Instance.ReqClntFightNpc<GA_NpcClientFightNorm>(30102003, E_ActorGroup.Enemy);
|
| | | var _npc = GAMgr.Instance.ReqClntFightNpc<GA_NpcClientFightBoss>(10103001, E_ActorGroup.Enemy);
|
| | | _npc.BornPos = _npc.Pos = PlayerDatas.Instance.hero.Pos;
|
| | | _npc.ActorInfo.ResetHp(9999999, -1, 9999999);
|
| | |
|
| | | // BossShowModel.Instance.Start(PlayerDatas.Instance.baseData.MapID, 10103001);
|
| | | // ClientDropItemUtility.Instance.Drop(PlayerDatas.Instance.hero.Pos,
|
| | | // new int[] { 5006, 5301, 5410, 5505, 10543, 1043050,
|
| | | // 5301, 5410, 5505, 10543, 1043050,
|
| | | // 5301, 5410, 5505, 10543, 1043050,
|
| | | // 5301, 5410, 5505, 10543, 1043050,
|
| | | // 5301, 5410, 5505, 10543, 1043050 });
|
| | | // 5301, 5410, 5505, 10543, 1043050});
|
| | |
|
| | | // var _npc = GAMgr.Instance.ReqClntFightNpc<GA_NpcClientFightBoss>(10103001, E_ActorGroup.Enemy);
|
| | |
|
| | |
| | | {
|
| | | // GA_PVPClientPlayer.Reset();
|
| | | // AdventureStage.Instance.Exit();
|
| | | ClientSceneManager.Instance.ExitClientFightMode();
|
| | | }
|
| | |
|
| | | _navChkPos = EditorGUILayout.Vector3Field("检测点", _navChkPos);
|