示例#1
0
    /// <summary>
    /// 楽しんでいるかポップアップを表示
    /// </summary>
    void createAskingPopUp()
    {
        _gameManager._analyticsManager.SendCounterEvent(Const.UA_ASKING_POP_UP);

        // ラベル設定
        // 選択肢とそこで呼ばれるアクションの設定
        // メソッドをコールするGameObjectを設定
        string title   = "";
        string content = Const.MSG_ASKING_POPUP;

        List <CustomButton> buttons = new List <CustomButton> ();

        buttons.Add(new CustomButton(
                        Const.MSG_ASKING_POPUP_ANS_NO,
                        (int)Const.ButtonType.DEFAULT,
                        "AskForMessage"));
        buttons.Add(new CustomButton(
                        Const.MSG_ASKING_POPUP_ANS_YES,
                        (int)Const.ButtonType.POSITIVE,
                        "AskForReview"));

        // YES NO ダイアログ
        //「楽しんでいただけていますか?」とのダイアログを出す。
        _popUpCtrl.Open(title, content, buttons, this.gameObject);
    }
示例#2
0
 public void OpenPopUp(string pTitle, string pContent = "")
 {
     _popUp.Open(pTitle, pContent);
 }