Exemple #1
0
	void UpdateMove()
	{
		var ray = Camera.main.ScreenPointToRay(Input.mousePosition);
		RaycastHit info;
		if (Physics.Raycast(ray, out info, 1000f, movementMask))
		{
			actionContainer.SetCurrentAction(new MoveAction(agent, info.point, animator, Mathf.Epsilon));
		}
	}