コード例 #1
0
    public static UIPopup_OneBtn Create(string msg_, string title_ = null, string btnMsg_ = null, Action actOnClick_ = null, Action actOnBack_ = null)
    {
        UIPopup_OneBtn popup = UIManager.a.OpenPopup <UIPopup_OneBtn>();

        popup._txtMsg.text   = null == msg_ ? msg_ : string.Empty;
        popup._txtTitle.text = null == title_ ? title_ : "Error"; //I2.Loc.ScriptLocalization.Get("Error");
        popup._txtBtn.text   = null == btnMsg_ ? btnMsg_ : "OK";  //I2.Loc.ScriptLocalization.Get("OK");
        popup._actOnClick    = actOnClick_;
        popup.OnBackEvent    = actOnBack_;
        return(popup);
    }
コード例 #2
0
ファイル: UIManager.cs プロジェクト: YeonjaeLee/GAME_SAMPLE
 public UIPopup_OneBtn OpenPopup_OneBtn(string msg_, string title_ = null, string btnMsg_ = null, Action actOnClick_ = null)
 {
     return(UIPopup_OneBtn.Create(msg_, title_, btnMsg_, actOnClick_));
 }