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 () {

}

}


'Computer Language > 유니티' 카테고리의 다른 글

3인칭 시점  (0) 2014.11.13
사인과 코사인 응용 방안  (0) 2014.11.12
더미와 다이어로그  (0) 2014.11.10
캐릭터,리그 ,애니메이터  (0) 2014.07.21
파티클 1번과 2번 2번을 주로 애용  (0) 2014.07.21

+ Recent posts