feat unity point客户端初始化

This commit is contained in:
2025-12-15 11:23:22 +08:00
parent 3498cf158d
commit 1bd50d298a
34 changed files with 3819 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
using UnityEngine;
public class PlayerMove : MonoBehaviour
{
public float moveSpeed = 5f; // 移动速度
private void Update()
{
var moveX = Input.GetAxis("Horizontal") * moveSpeed * Time.deltaTime;
var moveY = Input.GetAxis("Vertical") * moveSpeed * Time.deltaTime;
transform.Translate(moveX, moveY, 0);
}
}