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/CButton.cs
2024-03-24 22:21:16 +01:00

16 lines
323 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UIElements;
public class AButton : Button
{
public AButton() {
base.clicked += PlayClickSound;
}
private void PlayClickSound() {
Resources.Load<AudioClip>("buttonClick");
}
}