diff --git a/JsonRead/JsonReadBase.cs b/JsonRead/JsonReadBase.cs index 6c778be..f4d801d 100644 --- a/JsonRead/JsonReadBase.cs +++ b/JsonRead/JsonReadBase.cs @@ -32,7 +32,7 @@ public class JsonReadBase : Base // 反序列化为列表 List dataList = JsonConvert.DeserializeObject>(jsonText); - Debug.Log($"成功从JSON数组中加载了 {dataList.Count} 个 {typeof(T).Name} 项目。"); + //Debug.Log($"成功从JSON数组中加载了 {dataList.Count} 个 {typeof(T).Name} 项目。"); return dataList; } catch (JsonException ex) diff --git a/Role/Attack.cs b/Role/Attack.cs index a594491..95b1cee 100644 --- a/Role/Attack.cs +++ b/Role/Attack.cs @@ -359,7 +359,7 @@ public class Attack : MonoBehaviour attackRangeSprite.transform.position = new Vector2(attackRangeSprite.transform.position.x - offSetX, attackRangeSprite.transform.position.y); //characterClick.OrSizeY = 1; - Debug.Log("淇敼鍥剧墖瀹藉害"); + //Debug.Log("淇敼鍥剧墖瀹藉害"); } diff --git a/Role/Bullet.cs b/Role/Bullet.cs index 100da7d..5c71a30 100644 --- a/Role/Bullet.cs +++ b/Role/Bullet.cs @@ -371,15 +371,6 @@ public class Bullet : MonoBehaviour void OnDestroy() { - // 清理动态加载资源 - if (transform.GetComponent() != null) - { - var material = transform.GetComponent().material; - if (material != null) Destroy(material); - - var texture = material.mainTexture; - if (texture != null) Destroy(texture); - } // 停止协程 StopAllCoroutines(); diff --git a/Role/Role.cs b/Role/Role.cs index 2e85275..9a7c418 100644 --- a/Role/Role.cs +++ b/Role/Role.cs @@ -225,7 +225,7 @@ public class Role : Fun mySkillUp = this.transform.GetComponent(); } - if (mySkillUp == null) + if (mySkillUp == null&& camp!=Camp.Enemy) { UnityEngine.Debug.LogError(this.name+"mySkillUp is no"); } @@ -550,7 +550,6 @@ public class Role : Fun if (camp==Camp.Player) { - // Debug.Log("鏀诲嚮鍔涜祴鍊==============================" + MengyaoInfo.Instance.m_Mengyao.Count); Debug.Log("鏀诲嚮鍔涜祴鍊==============================" + MengyaoInfo.Instance.m_Mengyao.Count); foreach (Character character in MengyaoInfo.Instance.m_Mengyao) { @@ -629,7 +628,7 @@ public class Role : Fun if (Target.GetComponent().isSlowed) // 濡傛灉鏁屼汉鍑忛 { hurt *= (1 + mySkillUp.DamageOfSlow); - UnityEngine.Debug.Log("鍑忛熸晫浜哄姞鎴"); + //UnityEngine.Debug.Log("鍑忛熸晫浜哄姞鎴"); }