public OptionSelectCmd(List <string> options, string headerText, IScriptPlayer owner, OptionBoxHandler handler)
 {
     this.options    = options;
     this.handler    = handler;
     this.headerText = headerText;
     this.owner      = owner;
 }
    public void SetUp(List <string> options, string headerText, OptionBoxHandler handler)
    {
        UIEvents.EnableUIBlocker.Invoke();
        this.handler         = handler;
        this.headerText.text = headerText;

        // create a button for each option
        int index = 0;

        foreach (string option in options)
        {
            Instantiate(optionButtonPrefab, transform).SetUp(index, option, this);
            index++;
        }
    }
 public static OptionSelectCmd CreateCommand(List <string> options, string headerText, IScriptPlayer owner, OptionBoxHandler handler) => new OptionSelectCmd(options, headerText, owner, handler);
 public static void CreateAndQueue(List <string> options, string headerText, IScriptPlayer owner, OptionBoxHandler handler) => InformativeAnimationsQueue.Instance.AddAnimation(new OptionSelectCmd(options, headerText, owner, handler));