2534 【1.3.100】守卫人皇朝向错误 战斗类型朝向特殊处理
| | |
| | | AdjustPos(_h0406.PosX, _h0406.PosY);
|
| | | }
|
| | |
|
| | | // 战斗类型的怪物随机朝向
|
| | | Rotation = Quaternion.Euler(0, UnityEngine.Random.Range(0, 360), 0);
|
| | | GAStaticDefine.NPCLocation _npcLocation;
|
| | | if ((NpcConfig.NPCID == 31704001
|
| | | || NpcConfig.NPCID == 31704002
|
| | | || NpcConfig.NPCID == 31704003)
|
| | | && GAStaticDefine.TryGetMapNPCLocation(NpcConfig.NPCID, out _npcLocation))
|
| | | {
|
| | | Rotation = MathUtility.GetClientRotationFromAngle(_npcLocation.face);
|
| | | }
|
| | | else
|
| | | {
|
| | | Rotation = Quaternion.Euler(0, UnityEngine.Random.Range(0, 360), 0);
|
| | | }
|
| | |
|
| | | base.OnInit(package);
|
| | | }
|