Compare commits

...

2 Commits

7 changed files with 29 additions and 5 deletions

View File

@ -107,6 +107,8 @@ MonoBehaviour:
attackRange: {fileID: 7939695578342722628}
isShowPanel: 0
instantiatedPanel: {fileID: 0}
OrigScale: {x: 0, y: 0, z: 0}
OrSizeX: 0
--- !u!1 &7939695578342722628
GameObject:
m_ObjectHideFlags: 0
@ -373,6 +375,7 @@ MonoBehaviour:
attackRangeSprite: {fileID: 4735534361623519927}
AttackStayTime: 2
Target: {fileID: 0}
characterClick: {fileID: 8940501394638592702}
isAttack: 1
flag: 0
timer: 0
@ -510,6 +513,8 @@ MonoBehaviour:
isHit: 0
myTags: 0
mySkillUp: {fileID: 1061754087244483355}
IsDead: 0
HaveDieTime: 0
enemyId:
moveSpeed: 0
MengyaoSprite: {fileID: 21300000, guid: d3d3d16c3383ae1468c21c193ac1d2e8, type: 3}

View File

@ -160,6 +160,8 @@ MonoBehaviour:
attackRange: {fileID: 681042887138380540}
isShowPanel: 0
instantiatedPanel: {fileID: 0}
OrigScale: {x: 0, y: 0, z: 0}
OrSizeX: 0
--- !u!1 &6070656209494785206
GameObject:
m_ObjectHideFlags: 0
@ -373,6 +375,7 @@ MonoBehaviour:
attackRangeSprite: {fileID: 2211402838936384874}
AttackStayTime: 0
Target: {fileID: 0}
characterClick: {fileID: 8274433498955506092}
isAttack: 1
flag: 0
timer: 0
@ -499,6 +502,8 @@ MonoBehaviour:
isHit: 0
myTags: 0
mySkillUp: {fileID: 3258498600701209889}
IsDead: 0
HaveDieTime: 0
enemyId:
moveSpeed: 0
MengyaoSprite: {fileID: 21300000, guid: 602511914339bfa4896fd45f36054865, type: 3}

View File

@ -76,6 +76,8 @@ MonoBehaviour:
attackRange: {fileID: 3418438549176293054}
isShowPanel: 0
instantiatedPanel: {fileID: 0}
OrigScale: {x: 0, y: 0, z: 0}
OrSizeX: 0
--- !u!1 &3418438549176293054
GameObject:
m_ObjectHideFlags: 0
@ -373,6 +375,7 @@ MonoBehaviour:
attackRangeSprite: {fileID: 202225011326617106}
AttackStayTime: 0
Target: {fileID: 0}
characterClick: {fileID: 4417703037588761391}
isAttack: 1
flag: 0
timer: 0
@ -499,6 +502,8 @@ MonoBehaviour:
isHit: 0
myTags: 0
mySkillUp: {fileID: 206052671066122143}
IsDead: 0
HaveDieTime: 0
enemyId:
moveSpeed: 0
MengyaoSprite: {fileID: 21300000, guid: e42ec8eaea1c0434d9151c05ab649b49, type: 3}

@ -1 +1 @@
Subproject commit 53e24b624e206126bddcc2e0d8399a442d741901
Subproject commit e181aec8b1cfd1b630cbcdb3dc4f450db9ea8cf1

View File

@ -7,12 +7,14 @@ using UnityEngine.EventSystems;
public class CharacterClick : MonoBehaviour
{
public Role role;
public Character MyCharacter=null;
public Character MyCharacter = null;
[Header("点击出现的详情")] public GameObject panelPrefab;
[Header("点击出现的攻击范围")] public GameObject attackRange;
[Header("是否已经显示面板")] public bool isShowPanel = false;
[Header("显示的信息面板")] public GameObject instantiatedPanel;
private Vector3 OrigScale;
public Vector3 OrigScale;
public float OrSizeX;
private bool isShowAttackRange=true;
public WaveData MyWaveData=null;
void Start()
@ -20,6 +22,10 @@ public class CharacterClick : MonoBehaviour
if (attackRange!=null)
{
OrigScale = attackRange.transform.localScale;
OrSizeX = attackRange.GetComponent<SpriteRenderer>().bounds.size.x;
role.attackClass.SetAttackRange();
//ShowAttackRange(UIContorl.instance.NowAttackRange);
}
if (transform.GetComponent<enemy>()!=null)
@ -105,7 +111,7 @@ public class CharacterClick : MonoBehaviour
{
if (attackRange!=null)
{
attackRange.transform.DOScale(OrigScale, 0.3f).SetEase(Ease.InOutBack);
attackRange.transform.DOScale(new Vector2(OrSizeX, OrSizeX), 0.3f).SetEase(Ease.InOutBack);
}

View File

@ -50,6 +50,7 @@ public class mkl_SkillUp : SkillUp
public override void Skill_2_5()
{
CriticalRate += 0.2f;
AttackRange += -1;
base.AttackRange += -1;
attack.SetAttackRange();
}
}

View File

@ -18,6 +18,7 @@ public class qieSkillUp : SkillUp
{
base.SpeedOfBullets += 0.2f;
base.AttackRange += -1;
attack.SetAttackRange();
}
/// <summary>
/// 对处于减速的敌人造成额外30%伤害。 攻击CD增加5%
@ -50,5 +51,6 @@ public class qieSkillUp : SkillUp
{
DamageOfMin += 0.25f;
AttackRange += -1;
attack.SetAttackRange();
}
}