2D basic movement UNITY

前端 未结 2 1450
醉梦人生
醉梦人生 2021-01-29 10:01

Currently my character works perfectly on the keyboard, but when I convert your movements to touch, through 3 UI Buttons (i tried UI image too, but success) i\'m not succeeding<

2条回答
  •  情歌与酒
    2021-01-29 10:19

    I think you should use EventTrigger OnPointerDown and OnPointerUp events:

    http://docs.unity3d.com/ScriptReference/EventSystems.EventTrigger.html

    I hope it helps you

提交回复
热议问题