AIBehavior.MecanimNavMeshPathScript.OnNewDestination C# (CSharp) Method

OnNewDestination() public method

public OnNewDestination ( Vector3 targetPoint, float movementSpeed, float rotationSpeed ) : void
targetPoint Vector3
movementSpeed float
rotationSpeed float
return void
		void OnNewDestination(Vector3 targetPoint, float movementSpeed, float rotationSpeed)
		{
			this.movementSpeed = movementSpeed;
			this.rotationSpeed = rotationSpeed;

			NavMesh.CalculatePath(mecanimTransform.position, targetPoint, 255, navMeshPath);
		}