1. 패킷 ID 부여
2. 패킷 구조체 생성
3. 프로세스 패킷() 에서 패킷 분석 로직 추가
4. 패킷 처리 함수 구현.
1. 패킷 ID 부여
2. 패킷 구조체 생성
3. 프로세스 패킷() 에서 패킷 분석 로직 추가
4. 패킷 처리 함수 구현.
using UnityEngine;
using System.Collections;
public class Dialog : MonoBehaviour {
public delegate void OnButtonEvent();
public event OnButtonEvent eventButtonOk;
public event OnButtonEvent eventButtonCancel;
public UILabel Title, Message;
public UIPlayTween PlayDestroy;
public void OnButtonOkClick(){
PlayDestroy.Play(true);
eventButtonOk();
}
public void OnButtonCancelClick(){
PlayDestroy.Play(true);
Destroy(gameObject);
eventButtonCancel();
}
public void OnScaleDown(){
Destroy(this.gameObject);
}
public void OnScaleUp(){
}
// Use this for initialization
void Start () {
}
}
3인칭 시점 (0) | 2014.11.13 |
---|---|
사인과 코사인 응용 방안 (0) | 2014.11.12 |
더미와 다이어로그 (0) | 2014.11.10 |
캐릭터,리그 ,애니메이터 (0) | 2014.07.21 |
파티클 1번과 2번 2번을 주로 애용 (0) | 2014.07.21 |