第一天

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-21 17:32:00 +08:00
parent 5bf2498e9e
commit 8b196e9343
10 changed files with 495 additions and 45 deletions

17
Assets/Player.cs Normal file
View File

@@ -0,0 +1,17 @@
using UnityEngine;
public class Player : MonoBehaviour
{
public Rigidbody2D rb;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
rb.linearVelocity = new Vector2(Input.GetAxis("Horizontal"), rb.linearVelocityY);
}
}