Example #1
0
 private void OnUiChange(MsgChangeOptionUI obj)
 {
     if (cMenu.GetTransformContainer.gameObject == obj.parentOfScrollRect)
     {
         MessageAgregator <MsgChangeMenuDb> .Publish(new MsgChangeMenuDb()
         {
             sdb = activeEditables[obj.selectedOption].mySDB
         });
     }
     else
     {
         if (cdbManager != null)
         {
             if (obj.parentOfScrollRect == cdbManager.PaiDoGrid)
             {
                 secManager.ApplyColor(cdbManager.CurrentGridColor);
             }
         }
         else if (obj.parentOfScrollRect == mySuggestionColors.GetTransformContainer.gameObject)
         {
             secManager.ApplyColor(mySuggestionColors.GetSelectedColor);
         }
     }
 }
Example #2
0
 private void OnChangeOptionUI(MsgChangeOptionUI obj)
 {
     Sfx.PlaySfx(FayvitSounds.SoundEffectID.Cursor1);
 }