예제 #1
0
        internal HC.MultiToggle Set(HC.MultiToggle c)
        {
            c.maxEnabled = maxEnabled;
            // c.toggleDefs set in REMultiToogle

            return(c);
        }
예제 #2
0
 internal Selector(
     GameObject gameObject,
     HC.ReactorId pieceId,
     RectTransform rectTransform,
     HC.MultiToggle multiToggle
     ) : base(gameObject, pieceId, rectTransform)
 {
     this.multiToggle = multiToggle;
 }
예제 #3
0
 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);
         }
     });
 }
예제 #4
0
 protected override void AddComponents()
 {
     multiToggleCmp = propsMultiToggle().Set(gameObject);
 }
예제 #5
0
            internal override void Destroy()
            {
                base.Destroy();

                multiToggle = null;
            }