유니티 Invoke 노트
설정한 시간만큼 함수 시작시간 지연시키기 Invoke() 사용법 void Start() { Invoke("Action", 5f); } void Action() { Debug.Log("5초가 지났습니다"); } 5초 뒤에 Action()이 활성화 된다. ?.Invoke() if(ExampleEvent != null) { ExampleEvent(); } // 아래와 동일 ExampleEvent?.Invoke();
Unity/C# note
2020. 11. 17. 10:56