Example #1
0
    // 기본 팝업 - ok cancel
    public void MessagePopupOKCancel(string title, string text, GameObject target = null, string okFunc = null, string cancelFunc = null)
    {
        GameObject popup = GameObject.Instantiate(Resources.Load(GamePath.POPUP + "MessagePopup"), transform) as GameObject;

        popup.transform.localScale = new Vector3(0, 0, 0);
        MessagePopup msgp = popup.GetComponent <MessagePopup>();

        msgp.Setup(MessagePopup.MESSAGEPOPUP_TYPE.OK_CANCEL, title, text, target, okFunc, cancelFunc);

        m_popupQueue.Enqueue(popup);
        if (GetPopupCount() == 1)
        {
            iTween.ScaleTo(popup, iTween.Hash("x", 1.0f, "y", 1.0f, "easetype", m_tween, "time", 0.3f));
        }
    }