first commit

This commit is contained in:
2022-07-02 21:23:45 +08:00
commit 7cdcaf1e2f
102 changed files with 7208 additions and 0 deletions

View File

@ -0,0 +1,16 @@
using Godot;
using System;
public class ButtonCommon : Button
{
AudioStreamPlayer audio;
public override void _Ready() {
this.Connect("pressed", this, nameof(event_Btn_pressed));
audio = GetNode<AudioStreamPlayer>("AudioClick");
}
private void event_Btn_pressed() {
audio.Play();
}
}