This repository has been archived on 2025-06-18. You can view files and clone it, but cannot push or open issues or pull requests.
Files
skolavdf/phr/StickGame/Assets/UI/PlayButton.cs
2024-03-24 22:21:16 +01:00

27 lines
724 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UIElements;
public class PlayButton : VisualElement
{
[UnityEngine.Scripting.Preserve]
public new class UxmlFactory : UxmlFactory<PlayButton> { }
const string styleSheetPath = "Default";
const string ussActionButton = "PlayButton";
public PlayButton()
{
styleSheets.Add(Resources.Load<StyleSheet>(styleSheetPath));
AddToClassList(ussActionButton);
Button actionButton = new Button() { text = "Play" };
actionButton.clicked += ActionButtonClicked;
Add(actionButton);
}
private void ActionButtonClicked()
{
}
}