반응형
public class CustomEvents : MonoBehaviour {
public delegate void GameStateEventHandler();
public static event GameStateEventHandler GameStateUpdated = delegate { };
public delegate void EntityEventHandler(Entity entity);
public static event EntityEventHandler EntitySelected = delegate { };
public static event EntityEventHandler EntityDeselected = delegate { };
public delegate void FactionEntityEventHandler (FactionEntity entity);
public static event FactionEntityEventHandler FactionEntityDead = delegate { };
public static event FactionEntityEventHandler FactionEntityMouseEnter = delegate { };
public static event FactionEntityEventHandler FactionEntityMouseExit = delegate { };
// ...
이런식으로.
UntyEvent와 UnityAction 차이
https://wergia.tistory.com/243
반응형
'Unity > Unity 리서치' 카테고리의 다른 글
VS Code Unity Debugger에 Run버튼이 없을 경우 (0) | 2022.01.05 |
---|---|
Unity Mobile Build (0) | 2021.12.31 |
[Sprite Editor] 소스코드로 Image를 바꿔치기 했을 때 크기가 이상하게 나오는 경우 (0) | 2021.12.04 |
Inactive된 자손 포함 전체 검색 (0) | 2021.11.30 |
FCM Push (0) | 2021.11.29 |