internal HC.MultiToggle Set(HC.MultiToggle c) { c.maxEnabled = maxEnabled; // c.toggleDefs set in REMultiToogle return(c); }
internal Selector( GameObject gameObject, HC.ReactorId pieceId, RectTransform rectTransform, HC.MultiToggle multiToggle ) : base(gameObject, pieceId, rectTransform) { this.multiToggle = multiToggle; }
internal void SetListeners(HC.MultiToggle c, TSelector selector) { c.OnValueChanged.AddListener((l) => { try { OnValueChangedListener?.Invoke(l, selector); } catch (Exception e) { Debug.LogError("Error Executing OnValueChangedListener: " + e); } }); }
protected override void AddComponents() { multiToggleCmp = propsMultiToggle().Set(gameObject); }
internal override void Destroy() { base.Destroy(); multiToggle = null; }