rougelike_LeiXiXueGui/Assets/Scripts/PlayerController.cs

28 lines
505 B
C#
Raw Normal View History

2025-07-16 22:36:06 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : MonoBehaviour
{
[Header("Ԫ<><D4AA>")]
[SerializeField] private Joystick playerJoystick;
[Header("<22><><EFBFBD><EFBFBD>")]
[SerializeField] private float moveSpeed;
private Rigidbody2D rb;
private void Start()
{
rb = GetComponent<Rigidbody2D>();
rb.velocity = Vector2.right;
}
private void FixedUpdate()
{
// rb.velocity = playerJoystick.
}
}