@@ -264,6 +264,7 @@ public class Demonic : MoveCharacter
dieKeepTime -= Time.deltaTime;
invincibleTime -= Time.deltaTime;
weakTime -= Time.deltaTime;
+ beRepelValue += Time.deltaTime;
Vector3 leftDir = GetMoveDir();
bool isAttack = GetAttack();
@@ -231,6 +231,7 @@ public class Enemy : MoveCharacter
@@ -12,7 +12,7 @@ public class MoveCharacter : Character
public float extraRiseGravity = 0; //上升时额外重力加速度
public float extraFallGravity = -10; //下落时额外重力加速度
public float moveSpeed = 5;
- //[HideInInspector]
+ [HideInInspector]
public float beRepelValue;
public float totalBeRepelValue;
[HideInInspector]
@@ -858,7 +858,7 @@ public class PlayerController : MoveCharacter
cacheRushTime -= Time.deltaTime;
-
Vector3 velocity = rb.velocity;
switch (state)
{