|
Post by Admin on Sept 25, 2016 23:16:11 GMT
Add the following lines after the AI Actions of the script
#region Added by DK public void SetController (float _patrolSpeed, float _chaseSpeed, float _strafeSpeed, float _strafeRotationSpeed, float _headWeight ){ patrolSpeed = _patrolSpeed; chaseSpeed = _chaseSpeed; strafeSpeed = _strafeSpeed; strafeRotationSpeed = _strafeRotationSpeed; headWeight = _headWeight; }
public void SetLandHigh ( bool LandHigh ){ // landHigh = LandHigh; }
public void SetJumpOver ( bool _jumpOver ){ _rigidbody.useGravity = !_jumpOver; _capsuleCollider.isTrigger = _jumpOver; jumpOver = _jumpOver; }
#endregion Added by DK
|
|