同步
This commit is contained in:
parent
40480bba70
commit
4d1b96944c
@ -32,7 +32,7 @@ public class JsonReadBase : Base
|
|||||||
|
|
||||||
// 反序列化为列表
|
// 反序列化为列表
|
||||||
List<T> dataList = JsonConvert.DeserializeObject<List<T>>(jsonText);
|
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;
|
return dataList;
|
||||||
}
|
}
|
||||||
catch (JsonException ex)
|
catch (JsonException ex)
|
||||||
|
@ -359,7 +359,7 @@ public class Attack : MonoBehaviour
|
|||||||
|
|
||||||
attackRangeSprite.transform.position = new Vector2(attackRangeSprite.transform.position.x - offSetX, attackRangeSprite.transform.position.y);
|
attackRangeSprite.transform.position = new Vector2(attackRangeSprite.transform.position.x - offSetX, attackRangeSprite.transform.position.y);
|
||||||
//characterClick.OrSizeY = 1;
|
//characterClick.OrSizeY = 1;
|
||||||
Debug.Log("修改图片宽度");
|
//Debug.Log("修改图片宽度");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -371,15 +371,6 @@ public class Bullet : MonoBehaviour
|
|||||||
|
|
||||||
void OnDestroy()
|
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();
|
StopAllCoroutines();
|
||||||
|
@ -225,7 +225,7 @@ public class Role : Fun
|
|||||||
mySkillUp = this.transform.GetComponent<SkillUp>();
|
mySkillUp = this.transform.GetComponent<SkillUp>();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mySkillUp == null)
|
if (mySkillUp == null&& camp!=Camp.Enemy)
|
||||||
{
|
{
|
||||||
UnityEngine.Debug.LogError(this.name+"mySkillUp is no");
|
UnityEngine.Debug.LogError(this.name+"mySkillUp is no");
|
||||||
}
|
}
|
||||||
@ -550,7 +550,6 @@ public class Role : Fun
|
|||||||
|
|
||||||
if (camp==Camp.Player)
|
if (camp==Camp.Player)
|
||||||
{
|
{
|
||||||
// Debug.Log("攻击力赋值==============================" + MengyaoInfo.Instance.m_Mengyao.Count);
|
|
||||||
Debug.Log("攻击力赋值==============================" + MengyaoInfo.Instance.m_Mengyao.Count);
|
Debug.Log("攻击力赋值==============================" + MengyaoInfo.Instance.m_Mengyao.Count);
|
||||||
foreach (Character character in MengyaoInfo.Instance.m_Mengyao)
|
foreach (Character character in MengyaoInfo.Instance.m_Mengyao)
|
||||||
{
|
{
|
||||||
@ -629,7 +628,7 @@ public class Role : Fun
|
|||||||
if (Target.GetComponent<enemy>().isSlowed) // 如果敌人减速
|
if (Target.GetComponent<enemy>().isSlowed) // 如果敌人减速
|
||||||
{
|
{
|
||||||
hurt *= (1 + mySkillUp.DamageOfSlow);
|
hurt *= (1 + mySkillUp.DamageOfSlow);
|
||||||
UnityEngine.Debug.Log("减速敌人加成");
|
//UnityEngine.Debug.Log("减速敌人加成");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user