This commit is contained in:
2026-05-02 20:23:43 +07:00
parent 6b83ac05d5
commit dd4c0c02e7
637 changed files with 340 additions and 172 deletions

View File

@@ -7,6 +7,12 @@ public class PlayerController : MonoBehaviour
void Update()
{
if (joystick == null)
{
Debug.LogWarning("Joystick is not assigned in PlayerController!");
return;
}
// Lấy input từ Joystick
float horizontal = joystick.Horizontal;
float vertical = joystick.Vertical;