|
|
@@ -38,12 +38,16 @@ public class PlayerController : MonoBehaviour
|
|
|
//public float airMoveAcc = 3f;
|
|
|
|
|
|
public PlayerState state = PlayerState.Idle;
|
|
|
+ [HideInInspector]
|
|
|
public float invincibleTime;
|
|
|
public float totalInvincibleTime = 2f;
|
|
|
+ [HideInInspector]
|
|
|
public float canJumpTime; //离开平台后仍然可以跳跃的时间,用于提升手感
|
|
|
public float leaveGroundCanJumpTime = 0.1f;
|
|
|
+ [HideInInspector]
|
|
|
public float cacheJumpTime; //即将落地时按下跳跃键不会跳跃,手感不好,缓存几帧,在这几帧内落地会立即跳跃;
|
|
|
public float totalCacheJumpTime = 0.1f;
|
|
|
+ [HideInInspector]
|
|
|
public float hurtKeepTime;
|
|
|
public float totalHurtKeepTime = 0.5f;
|
|
|
|