Ejemplo n.º 1
0
 public void OnAddActionToActionButton(object sender, AddActionToActionButtonArgs <IAction> args)
 {
     if (_actionbarIndexes.TryGetValue(args.Index, out var visualElement))
     {
         var texture = Resources.Load <Texture>(args.Action.ActionImagePath);
         visualElement.style.backgroundImage = (StyleBackground)texture;
     }
 }
Ejemplo n.º 2
0
 private void ActionbarControllerOnAddActionToActionButtonEvent(object sender, AddActionToActionButtonArgs <IAction> e)
 {
     if (_actionbarButtons.TryGetValue(e.Index, out var value))
     {
         value.AddAction();
     }
 }