This commit is contained in:
wulongxiao 2025-01-12 21:52:04 +08:00
parent 40480bba70
commit 4d1b96944c
4 changed files with 4 additions and 14 deletions

View File

@ -32,7 +32,7 @@ public class JsonReadBase : Base
// 反序列化为列表
List<T> dataList = JsonConvert.DeserializeObject<List<T>>(jsonText);
Debug.Log($"成功从JSON数组中加载了 {dataList.Count} 个 {typeof(T).Name} 项目。");
//Debug.Log($"成功从JSON数组中加载了 {dataList.Count} 个 {typeof(T).Name} 项目。");
return dataList;
}
catch (JsonException ex)

View File

@ -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("修改图片宽度");
}

View File

@ -371,15 +371,6 @@ public class Bullet : MonoBehaviour
void OnDestroy()
{
// 清理动态加载资源
if (transform.GetComponent<Renderer>() != null)
{
var material = transform.GetComponent<Renderer>().material;
if (material != null) Destroy(material);
var texture = material.mainTexture;
if (texture != null) Destroy(texture);
}
// ֹͣЭ³Ì
StopAllCoroutines();

View File

@ -225,7 +225,7 @@ public class Role : Fun
mySkillUp = this.transform.GetComponent<SkillUp>();
}
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<enemy>().isSlowed) // 如果敌人减速
{
hurt *= (1 + mySkillUp.DamageOfSlow);
UnityEngine.Debug.Log("减速敌人加成");
//UnityEngine.Debug.Log("减速敌人加成");
}