private NodeState JumpForwardAnimation(Script_IEntity p_jumpingEntity, float p_speed) { GameObject jumpingObject = p_jumpingEntity.GetGameObject(); float groundHeight = _manager.GetGrid().GetGridDepthPosition(); if ((jumpingObject.transform.position.y - groundHeight) > _swingDistance) { _tree.SetBlackboardElement(_isForwardSwingFlag, false); return(NodeState.Success); } else { jumpingObject.transform.position += new Vector3(0, 1.0f, 0) * p_speed * Time.deltaTime; } return(NodeState.Running); }