Action참조변수 (1) 썸네일형 리스트형 [유니티] 씬 재로딩 후 Action 변수의 target null 문제 아래와 같이 정적 클래스에 Action 참조 변수를 만들어놓고 public class MethodManager { public static event System.Action SomeThing; public static void DoSomeThing() { SomeThing(); } } 아래와 같이 다른 클래스에서 함수를 등록하여 사용하려고 합니다. public class GameControll : MonoBehaviour { void Start() { MethodManager.SomeThing += Controll1; } void Controll1() { // do controll1 } } 이제 다른 클래스에서 언제든지 MethodManager.DoSometing(); 을 호출하면 GameControl.. 이전 1 다음