Exemple #1
0
        void OnSliderValueChanged(bool value)
        {
            var action = new UiToggleActionData();

            action.GroupId = GroupId;
            action.Sender  = _toggle;
            action.Value   = value;
            SendActionData(action);
        }
 void OnSliderValueChanged(bool value)
 {
     if (Singleton.IsTypeRegistered <UnityEventBus> ())
     {
         var action = new UiToggleActionData();
         action.GroupId = GroupId;
         action.Sender  = _toggle;
         action.Value   = value;
         Singleton.Get <UnityEventBus> ().Publish <UiToggleActionData> (action);
     }
 }