private bool CompareDelegate(Delegate action)
{
//함수 등록이 중복이 되었는지 검사
Delegate[] dels = action.GetInvocationList();
for (int i = 0; dels.Length > i; i++)
{
Delegate del = dels[i];
if (del.Target == action.Target && del.Method.Name == action.Method.Name)
return true;
}
return false;
}
'Unity > 스크립트' 카테고리의 다른 글
| Color.Lerp 함수를 이용해 A 컬러에서 B컬러로 자연스럽게 변경하기 (0) | 2017.04.27 |
|---|---|
| Facebook 초기화시 accesstoken 문제 (0) | 2016.08.23 |
| Unity 에서의 멀티쓰레드 구현 (0) | 2016.04.20 |
| 웹서버 구현없이 클라이언트에서 실시간 처리를 해야할때 (0) | 2016.04.08 |
| 앱안에서의 웹뷰처리 (0) | 2016.03.28 |
WRITTEN BY
,




