Unity Delegate1 C# Unity Delegate 설명 및 사용법 이번에는 Delegate에 관해서 공부를 해보려고 합니다. 대학교 졸업작품을 하는 도중에 친구가 Delegate와 관련하여 질문을 하였고 저는 잉?? 그게 뭐지라는 생각에 이번 공부를 진행하게 되었습니다. Delegate란 함수를 넣어 변수처럼 사용할 수 있는 형태입니다. 밑에 예시를 보여드리겠습니다. 현재 위 사진과 같이 Cube라는 Object에 Delegate_Ex라는 C# Script를 추가를 하였습니다. Delegate_Ex는 다음과 같습니다. using System.Collections; using System.Collections.Generic; using UnityEngine; public class Delegate_Ex : MonoBehaviour { delegate void MyDele.. 2021. 5. 9. 이전 1 다음