From 8c1a9efda804dc3f17f3fc7c542ddfe8fcc4e784 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期五, 07 十二月 2018 19:40:32 +0800
Subject: [PATCH] 4632 子 【1.3.0】上古战场调上古战场机器人外观处理
---
Fight/GameActor/GA_NpcFightSgzcZZ.cs | 6 +++---
Fight/GameActor/GA_NpcTouchKilled.cs | 11 ++---------
2 files changed, 5 insertions(+), 12 deletions(-)
diff --git a/Fight/GameActor/GA_NpcFightSgzcZZ.cs b/Fight/GameActor/GA_NpcFightSgzcZZ.cs
index dd3fa41..f050bdf 100644
--- a/Fight/GameActor/GA_NpcFightSgzcZZ.cs
+++ b/Fight/GameActor/GA_NpcFightSgzcZZ.cs
@@ -67,7 +67,7 @@
if ((objIdToJson as IDictionary).Contains(_key))
{
var _job = (int)objIdToJson[_key];
- Debug.Log("鏈哄櫒浜鸿亴涓氫负: " + _job);
+ // Debug.Log("鏈哄櫒浜鸿亴涓氫负: " + _job);
JobSetup = Config.Instance.Get<TableConfig.JobSetupConfig>(_job);
ActorInfo.Job = (byte)_job;
}
@@ -101,7 +101,7 @@
EquipRandomInfo _info = null;
foreach (var _key in _dict.Keys)
{
- Debug.LogFormat("纭畾淇℃伅, 褰撳墠绛夌骇: {0}, 閰嶇疆绛夌骇: {1}", m_H0406.CurLV, _key);
+ // Debug.LogFormat("纭畾淇℃伅, 褰撳墠绛夌骇: {0}, 閰嶇疆绛夌骇: {1}", m_H0406.CurLV, _key);
if (m_H0406.CurLV <= _key)
{
_info = _dict[_key];
@@ -111,7 +111,7 @@
if (_info == null)
{
- Debug.Log("鏃犳硶纭畾瑁呭淇℃伅..........");
+ Debug.Log("鏃犳硶纭畾瑁呭淇℃伅...绛夌骇鏄惁楂樹簬閰嶇疆: " + m_H0406.CurLV);
}
else
{
diff --git a/Fight/GameActor/GA_NpcTouchKilled.cs b/Fight/GameActor/GA_NpcTouchKilled.cs
index 91704be..f33e2d6 100644
--- a/Fight/GameActor/GA_NpcTouchKilled.cs
+++ b/Fight/GameActor/GA_NpcTouchKilled.cs
@@ -11,6 +11,8 @@
protected override void OnInit(GameNetPackBasic package)
{
+ base.OnInit(package);
+
m_H0406 = package as H0406_tagNPCAppear;
if (m_H0406 == null)
@@ -21,8 +23,6 @@
m_Touched = false;
// 鍒濆鍖栧潗鏍�
AdjustPos(m_H0406.PosX, m_H0406.PosY);
-
- HandleNpcConfig((int)m_H0406.NPCID);
// 鍔熻兘NPC闇�瑕佽鍙栭厤缃湞鍚�
GAStaticDefine.NPCLocation _npcLocation;
@@ -36,13 +36,6 @@
}
GAStaticDefine.NpcID2ServerInstID[NpcConfig.NPCID] = ServerInstID;
-
- if (m_Model)
- {
- m_Model.transform.SetParent(m_Root);
- m_Model.transform.localPosition = Vector3.zero;
- m_Model.transform.localRotation = Quaternion.identity;
- }
}
protected override void OnUnit()
--
Gitblit v1.8.0