Add StickGame Assets
This commit is contained in:
15
phr/StickGame/Assets/UI/CButton.cs
Normal file
15
phr/StickGame/Assets/UI/CButton.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user