Ejemplo n.º 1
0
 public void Open(DialogueWindowSettings settings)
 {           
     if (gameObject.activeInHierarchy)
     {
         SetupMessageText(settings.MessageText);
         SetupMessageImage(settings.MessageSprite);
         
         SetupOkButton(settings.OkButtonText, settings.OkButtonAction);
         SetupCancelButton(settings.CancelButtonText, settings.CancelButtonAction);
         SetupButtonsGroup();
         
         StartCoroutine(DoOpen());
     }
 }
Ejemplo n.º 2
0
        public static void OpenWindow(string messageText, Sprite messageSprite, string okButtonText, Action okButtonAction)
        {
            var settings = new DialogueWindowSettings()
            {
                MessageText        = messageText,
                MessageSprite      = messageSprite,
                OkButtonText       = okButtonText,
                OkButtonAction     = okButtonAction,
                CancelButtonText   = string.Empty,
                CancelButtonAction = null
            };

            OpenWindow(settings);
        }
Ejemplo n.º 3
0
 public static void OpenWindow(DialogueWindowSettings settings)
 {
     Window.Open(settings);
 }