using System; using UnityEngine; using UnityEngine.UIElements; namespace UnityEditor.U2D.Animation { internal class CopyToolbar : Toolbar { public class CopyToolbarFactory : UxmlFactory {} public class CopyToolbarUxmlTraits : UxmlTraits {} public event Action onDoCopy = () => {}; public event Action onDoPaste = () => {}; public CopyToolbar() { styleSheets.Add(ResourceLoader.Load("SkinningModule/CopyToolbarStyle.uss")); } public void DoCopy() { onDoCopy(); } public void DoPaste() { onDoPaste(); } public void BindElements() { var copyButton = this.Q