SW 중심대학 OSS GIT 서버 박건태, 이승준, 고기완, 이준호 새로운 배포
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
473 B

4 years ago
  1. using UnityEngine;
  2. using uPIe;
  3. [RequireComponent(typeof(uPIeMenu))]
  4. public class CustomInputMouse : MonoBehaviour
  5. {
  6. private uPIeMenu menu;
  7. private void Awake()
  8. {
  9. menu = GetComponent<uPIeMenu>();
  10. }
  11. private void Start()
  12. {
  13. menu.ControlWithGamepad = false;
  14. menu.UseCustomInputSystem = true;
  15. }
  16. private void Update()
  17. {
  18. menu.CustomInput = new Vector2(Input.mousePosition.x, Input.mousePosition.y);
  19. }
  20. }