Unity수업_미니게임 (2) 썸네일형 리스트형 Ball Game 만들기, 기본 Control, Trigger활용, UI 활용 3/4_Ball GameBall이 점프하며 Goal로 이동하는 게임Stage1 제작Ball Scriipt 작성using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.UI;using TMPro;using UnityEngine.SceneManagement;public class Ball : MonoBehaviour{ Rigidbody rb; [Header("Ball Settings")] public float ballMoveSpeed = 0.2f; public float ballJumpForce = 7f; bool isGrounded; bool isLanded; /.. 유니티 Dodge Game 만들기 PlayerControl방법 2/28_Dodge Game처음 세팅벽과 바닥 열심히 만들기캡슐 형태의 플레이어를 만든다Player로 이름을 바꾸고 tag도 Player 라고 달아준다.Rigidbody 컴포넌트 추가 후 PlayerController 스크립트를 Player오브젝트에 넣어주고player 자리에 player오브젝트를 드래그앤드랍→ Constrains의 포지션과 로테이션 값도 고정(Freeze)해주면 Player가 쓰러지지 않는다.PlayerController 스크립트 작성using System.Collections;using System.Collections.Generic;using UnityEngine;public class PlayerController : MonoBehaviour{ public Rigidbody .. 이전 1 다음