uChema 4 年前
当前提交
97ccda6a
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
      UOP1_Project/Assets/Scripts/Characters/StateMachine/Conditions/IsSlidingConditionSO.cs

4
UOP1_Project/Assets/Scripts/Characters/StateMachine/Conditions/IsSlidingConditionSO.cs


protected override bool Statement()
{
//First frame fail check
if (_protagonistScript.lastHit == null)
return false;
float stepHeight = _protagonistScript.lastHit.point.y - _protagonistScript.transform.position.y;
bool isWalkableStep = stepHeight <= _characterController.stepOffset;

正在加载...
取消
保存