using UnityEngine;

namespace ScrambleKit.Move.AimExample
{
	[RequireComponent(typeof(Aimer))]
	public class AimerInput : MonoBehaviour
	{
		private Aimer aimer;

		void Start()
		{
			aimer = GetComponent<Aimer>();
		}

		void Update()
		{
			aimer.aimingAt = Camera.main.ScreenToWorldPoint(Input.mousePosition);
		}
	}
}
