유니티 C# 똥피하기 게임 만들기 간단 구현


유니티 C# 똥피하기 게임 만들기 간단 구현

플레이어 코드 작성 using UnityEngine; public class PlayerController : MonoBehaviour { public float speed = 10f; public float horizontalBound = 8f; private Rigidbody2D rb; void Start() { rb = GetComponent(); } void Update() { float horizontalInput = Input.GetAxis("Horizontal"); rb.velocity = new Vector2(horizontalInput * speed, rb.velocity.y); if (transform.position.x < -horizontalBound) { transform.posi..


원문링크 : 유니티 C# 똥피하기 게임 만들기 간단 구현