Beispiel #1
0
    public void SelectType(RandomizationType type)
    {
        if (type == null)
        {
            return;
        }

        RandomCheckbox.isOn = type.IsRandom;
    }
Beispiel #2
0
    public void SelectType(RandomizationType type)
    {
        if (type == null)
        {
            return;
        }

        for (int i = 0; i < Types.Count; i++)
        {
            if (type.GetType() == Types[i].GetType())
            {
                TypeSelection.SetValueWithoutNotify(i);
                Types[i] = type;

                RandomCheckbox.isOn = type.IsRandom;
                SelectionChanged(TypeSelection);
                return;
            }
        }
    }
Beispiel #3
0
 public StoreRandomizationEventArgs(RandomizationType type, int index)
 {
     Type      = type;
     ListIndex = index;
 }