조이스틱으로 player 오브젝트 좌우 이동 로직 적용

This commit is contained in:
aube.lee committed 2025-01-24 19:03:32 +09:00
1 parent 10f31b0222
commit 752d02324a
11 files changed
+397 -182

No files matched your search

@@ -40,7 +40,7 @@ namespace TON
private Canvas canvas;
private Camera cam;
private Vector2 input = Vector2.zero;
public Vector2 input = Vector2.zero;
protected virtual void Start()
{
@@ -3,10 +3,8 @@ using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
namespace TON
{
public class VariableJoystick : Joystick
{
public float MoveThreshold { get { return moveThreshold; } set { moveThreshold = Mathf.Abs(value); } }