728x90 2d1 [Unity2D] Shooting Game 구조 만들기 연습 DontDestroyOnReoad : Scene이 바뀌어도 제거되지 않음 ! Scene 만들면 가장 먼저 Scene이름의 Empty, Script 만들기 ! lifetime transform.SetParent(transform) Camera.main.orthographicSize -> bullet.transform.position.y가 카메라 사이즈를 넘어가면 사라지게 활용 App using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class App : MonoBehaviour { private string version = "Version .. 2023. 2. 3. 이전 1 다음 728x90