예제 #1
0
    //--------------------------------------
    // INITIALIZE
    //--------------------------------------


    //--------------------------------------
    //  PUBLIC METHODS
    //--------------------------------------


    void OnGUI()
    {
        if (GUI.Button(new Rect(10, 10, 150, 50), "Rate Dialog PopUp"))
        {
            AndroidRateUsPopUp rate = AndroidRateUsPopUp.Create("Rate Us", rateText, rateUrl);
            rate.addEventListener(BaseEvent.COMPLETE, OnRatePopUpClose);
        }


        if (GUI.Button(new Rect(10, 70, 150, 50), "Dialog PopUp"))
        {
            AndroidDialog dialog = AndroidDialog.Create("Dialog Titile", "Dialog message");
            dialog.addEventListener(BaseEvent.COMPLETE, OnDialogClose);
        }

        if (GUI.Button(new Rect(10, 130, 150, 50), "Message PopUp"))
        {
            AndroidMessage msg = AndroidMessage.Create("Message Titile", "Message message");
            msg.addEventListener(BaseEvent.COMPLETE, OnMessageClose);
        }
    }