using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerController : MonoBehaviour { [Header("ÔªËØ")] [SerializeField] private Joystick playerJoystick; [Header("±äÁ¿")] [SerializeField] private float moveSpeed; private Rigidbody2D rb; private void Start() { rb = GetComponent(); // rb.velocity = Vector2.right; } private void FixedUpdate() { // rb.velocity = playerJoystick. } }