목록2023/08/10 (1)
아카이브
클릭한 위치에 몬스터 생성/삭제
Test_CreateMonster 오브젝트와 스크립트를 만든다 Test_CreateMonster 스크립트 using System.Collections; using System.Collections.Generic; using UnityEngine; public class Test_CreateMonster : MonoBehaviour { [SerializeField] private GameObject prefab; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { if (Input.GetMouseButtonDown(0)) { //좌클릭한 화면의 픽셀좌..
유니티 기초
2023. 8. 10. 18:13