public virtual void Init(DialogReceiverInterface e, string startTextContent)
        {
            ConfirmationDialog window = this;

            reference       = e;
            style           = new GUIStyle();
            style.fontStyle = FontStyle.Bold;

            question        = startTextContent;
            window.position = new Rect(Screen.width / 2 - 50, Screen.height / 2 - 150, 500, 100);
            window.Show();
        }
コード例 #2
0
        public void OnCliked()
        {
            ConfirmationDialog window = (ConfirmationDialog)ScriptableObject.CreateInstance(typeof(ConfirmationDialog));

            window.Init(this, "Delete chapter: " + Controller.Instance.ChapterList.getChapterTitles()[Controller.Instance.ChapterList.getSelectedChapter()]);
        }