객체삭제? Destroy()
Destroy() == Delete Game Object from the scene () 괄호안데 조건 두가지를 작성 해야 한다. // 지나가는 목표만 딜레이 후 삭제 하기 Destroy ( example, 1.0f); 이런식 으로 작성 하나, delay 를 [SerializeField] flaot destroyDelay = 0.5f; // 수정을 하기 위해서 Destroy (example , destoryDelay) ; 로 작성한다. public class Delivery : MonoBehaviour { // 어떠한 것과 부딪히면 무엇에 부딪혔는가에 대한 정보를 얻는다. [SerializeField] float destroyDelay = 0.5f; bool hasPackage; private void ..
2023.03.08