Beispiel #1
0
    void Start()
    {
        toggles = GetComponentsInChildren <BaseToggle>();
        if (toggles.Length <= 0 || toggles == null)
        {
            return;
        }

        for (int i = 0; i < toggles.Length; i++)
        {
            BaseToggle temp = toggles[i];
            temp.toggleGroup = this;
            if (!temp.isSelected)
            {
                continue;
            }
            else
            {
                temp.Init();
            }
        }
    }
Beispiel #2
0
 public void SetSelected(BaseToggle toggle)
 {
     lastToggle = curToggle;
     lastToggle.ResetState();
     curToggle = toggle;
 }