public XPickerCmd(int minValue, int maxValue, string headerText, Player owner, XValueHandler handler) { this.minValue = minValue; this.maxValue = maxValue; this.headerText = headerText; this.handler = handler; }
public void setUp(int minValue, int maxValue, string headerText, XValueHandler handler) { this.handler = handler; this.minValue = minValue; this.maxValue = maxValue; if (headerText == null || headerText.Equals("")) { headerText = "Select a value"; } headerTextMesh.text = headerText; if (minValue > 0) { xValue = minValue; xValueText.text = "" + xValue; } }
public static void CreateAndQueue(int minValue, int maxValue, string headerText, Player owner, XValueHandler handler) { InformativeAnimationsQueue.Instance.AddAnimation(CreateAsCommand(minValue, maxValue, headerText, owner, handler)); }
public static IQueueableCommand CreateAsCommand(int minValue, int maxValue, string headerText, Player owner, XValueHandler handler) { return(new XPickerCmd(minValue, maxValue, headerText, owner, handler)); }