예제 #1
0
    public void OnPointerUp(PointerEventData eventData)
    {
        // Debug.Log("PointerUp");
        joystickState = JoyStickState.Idle;

        if (aimingCircle != null)
        {
            aimingCircle.localRotation = Quaternion.identity;
        }

        if (playerInput != null)
        {
            playerInput.HandleJoyStick(0.0f, 0.0f);  // Update不会在Idle状态HandleJoyStick
        }
    }
예제 #2
0
 public void OnPointerDown(PointerEventData eventData)
 {
     // Debug.Log("PointerDown");
     joystickState = JoyStickState.Moving;
 }