|
|
@@ -67,8 +67,6 @@ public class Character : MonoBehaviour
|
|
|
public SearchTrigger searchTrigger;
|
|
|
public List<TargetType> targetTypes;
|
|
|
public bool canHitFly;
|
|
|
- [HideInInspector]
|
|
|
- public float hurtKeepTime;
|
|
|
|
|
|
public virtual void Init()
|
|
|
{
|
|
|
@@ -122,7 +120,7 @@ public class Character : MonoBehaviour
|
|
|
|
|
|
}
|
|
|
|
|
|
- public virtual void BeHit(int damage, Vector3 force, bool changeHurt, float hurtTime, float repelValue)
|
|
|
+ public virtual void BeHit(int damage, Vector3 force, bool changeHurt, float repelValue)
|
|
|
{
|
|
|
if (invincibleTime > 0)
|
|
|
{
|
|
|
@@ -156,7 +154,7 @@ public class Character : MonoBehaviour
|
|
|
{
|
|
|
attackDir.x = -attackDir.x;
|
|
|
}
|
|
|
- bullet.BeShoot(this, shootPos[shootId].position, attackDir, attackInfo.damage, attackInfo.force, attackInfo.changeHurt, attackInfo.hurtTime, attackInfo.repelValue, shootTrack, attackTarget?attackTarget:null);
|
|
|
+ bullet.BeShoot(this, shootPos[shootId].position, attackDir, attackInfo.damage, attackInfo.force, attackInfo.changeHurt, attackInfo.repelValue, shootTrack, attackTarget?attackTarget:null);
|
|
|
}
|
|
|
|
|
|
public virtual Vector3 GetMoveDir()
|
|
|
@@ -193,7 +191,6 @@ public class Character : MonoBehaviour
|
|
|
{
|
|
|
attackTriggers[i].damage = attack1Infos[i].damage;
|
|
|
attackTriggers[i].changeHurt = attack1Infos[i].changeHurt;
|
|
|
- attackTriggers[i].hurtTime = attack1Infos[i].hurtTime;
|
|
|
attackTriggers[i].repelValue = attack1Infos[i].repelValue;
|
|
|
Vector3 attackDir = attack1Infos[i].attackDir.normalized;
|
|
|
if (bodyTrans.localScale.x < 0)
|
|
|
@@ -239,7 +236,6 @@ public class Character : MonoBehaviour
|
|
|
{
|
|
|
attackTriggers[i].damage = attack2Infos[i].damage;
|
|
|
attackTriggers[i].changeHurt = attack2Infos[i].changeHurt;
|
|
|
- attackTriggers[i].hurtTime = attack2Infos[i].hurtTime;
|
|
|
attackTriggers[i].repelValue = attack2Infos[i].repelValue;
|
|
|
Vector3 attackDir = attack2Infos[i].attackDir.normalized;
|
|
|
if (bodyTrans.localScale.x < 0)
|