攻击范围修改bug

This commit is contained in:
GL 2024-12-28 15:46:21 +08:00
parent bb19707237
commit 5fd836fb71
5 changed files with 254 additions and 245 deletions

File diff suppressed because it is too large Load Diff

@ -1 +1 @@
Subproject commit e181aec8b1cfd1b630cbcdb3dc4f450db9ea8cf1
Subproject commit 9f99fc3d564950b491dce421b59661109d5580ca

View File

@ -14,6 +14,7 @@ public class CharacterClick : MonoBehaviour
[Header("显示的信息面板")] public GameObject instantiatedPanel;
public Vector3 OrigScale;
public float StartSizeX;
public float OrSizeX;
private bool isShowAttackRange=true;
public WaveData MyWaveData=null;
@ -23,8 +24,11 @@ public class CharacterClick : MonoBehaviour
{
OrigScale = attackRange.transform.localScale;
OrSizeX = attackRange.GetComponent<SpriteRenderer>().bounds.size.x;
StartSizeX = OrSizeX;
role.attackClass.SetAttackRange();
attackRange.transform.DOScale(new Vector2(OrSizeX, OrSizeX), 0.3f).SetEase(Ease.InOutBack);
//attackRange.transform.localScale=new Vector3(OrSizeX, OrSizeX,1);
//ShowAttackRange(UIContorl.instance.NowAttackRange);
}

View File

@ -5,52 +5,54 @@ using UnityEngine;
public class mkl_SkillUp : SkillUp
{
/// <summary>
/// 攻击CD减少25%
///子弹飞行速度增加30%。
/// </summary>
public override void Skill_1_1()
{
base.SpeedOfBullets = 0.3f;
}
/// <summary>
/// 对小型敌人增加40%伤害攻击CD增加5%
/// </summary>
public override void Skill_1_3()
{
base.DamageOfMin += 0.4f;
AttackCooldown += 0.05f;
}
/// <summary>
/// 每次攻击增加20%暴击率 射程减少1格"
/// </summary>
public override void Skill_1_5()
{
base.CriticalRate += 0.2f;
base.AttackRange = -1;
attack.SetAttackRange();
}
/// <summary>
/// 攻击CD减少25%
/// </summary>
public override void Skill_2_1()
{
base.AttackCooldown += -0.25f;
}
/// <summary>
/// 子弹飞行速度增加30%。攻击CD增加5%
/// </summary>
public override void Skill_1_3()
{
base.SpeedOfBullets = 0.3f;
AttackCooldown += 0.05f;
}
/// <summary>
/// 攻击增加20%暴击率 。攻击CD增加5%
/// </summary>
public override void Skill_1_5()
{
base.AttackCooldown += 0.05f;
base.DamageUp += 0.2f;
}
/// <summary>
/// 对小型敌人增加25%伤害
/// </summary>
public override void Skill_2_1()
{
base.DamageOfMin += 0.25f;
}
/// <summary>
/// 对小型敌人增加40%伤害。 攻击CD增加5%
/// 对小型敌人增加25%伤害射程减少1格
/// </summary>
public override void Skill_2_3()
{
base.DamageOfMin += 0.4f;
base.AttackCooldown += 0.5f;
}
/// <summary>
/// 每次攻击增加20%暴击率。射程减少1格
/// </summary>
public override void Skill_2_5()
{
CriticalRate += 0.2f;
base.DamageOfMin += 0.25f;
base.AttackRange += -1;
attack.SetAttackRange();
}
/// <summary>
/// 每次攻击增加20%暴击率攻击CD增加5%
/// </summary>
public override void Skill_2_5()
{
base.CriticalRate += 0.2f;
base.AttackCooldown += 0.05f;
}
}

View File

@ -17,7 +17,7 @@ public class qieSkillUp : SkillUp
public override void Skill_1_3()
{
base.SpeedOfBullets += 0.2f;
base.AttackRange += -1;
base.AttackRange = -1;
attack.SetAttackRange();
}
/// <summary>
@ -38,19 +38,22 @@ public class qieSkillUp : SkillUp
base.DamageOfSky += 0.25f;
}
/// <summary>
/// 攻击CD减少10%
/// 对小型敌人增加25%伤害。射程减少1格
/// </summary>
public override void Skill_2_3()
{
base.AttackCooldown += 0.75f;
//base.AttackCooldown += 0.75f;
DamageOfMin += 0.25f;
base.AttackRange = -1;
attack.SetAttackRange();
}
/// <summary>
/// 对小型敌人增加25%伤害。射程减少1格
/// 每次攻击增加20%暴击率攻击CD增加5%
/// </summary>
public override void Skill_2_5()
{
DamageOfMin += 0.25f;
AttackRange += -1;
attack.SetAttackRange();
Debug.Log("技能_2_5");
base.CriticalRate += 0.2f;
base.AttackCooldown += 0.05f;
}
}