Ejemplo n.º 1
0
 public XPickerCmd(int minValue, int maxValue, string headerText, Player owner, XValueHandler handler)
 {
     this.minValue   = minValue;
     this.maxValue   = maxValue;
     this.headerText = headerText;
     this.handler    = handler;
 }
Ejemplo n.º 2
0
    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;
        }
    }
Ejemplo n.º 3
0
 public static void CreateAndQueue(int minValue, int maxValue, string headerText, Player owner, XValueHandler handler)
 {
     InformativeAnimationsQueue.Instance.AddAnimation(CreateAsCommand(minValue, maxValue, headerText, owner, handler));
 }
Ejemplo n.º 4
0
 public static IQueueableCommand CreateAsCommand(int minValue, int maxValue, string headerText, Player owner, XValueHandler handler)
 {
     return(new XPickerCmd(minValue, maxValue, headerText, owner, handler));
 }