아이템 썸네일형 리스트형 3D 쿼터뷰 액션게임 - 드랍무기 입수 드랍무기 입수를 위해 OnTriggerStay 와 OnTriggerExit 를 이용해서 오브젝트 인식부터 진행합니다. 플레이어 주변의 오브젝트 tag가 Weapon 일때, 지정한 변수에 오브젝트의 정보를 변수에 담아주고 오브젝트 범위를 벗어나면 지정한 변수에 담겨져있던 오브젝트의 정보를 null 로 비워줍니다. using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { public float speed; float hAxis; float vAxis; bool wDown; bool jDown; public bool isJump; bool isDodge; Ve.. 더보기 이전 1 다음