🧪 Tested music setup with new music concept
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class Button : Godot.Button
|
||||
{
|
||||
//[Export] private AudioStreamPlaybackInteractive _audioStreamInteractive;
|
||||
[Export] private AudioStreamPlayer2D _palyer;
|
||||
|
||||
private int bla = 0;
|
||||
public void Pressed()
|
||||
{
|
||||
bla = bla == 0 ? 1 : 0;
|
||||
var s = ((AudioStreamPlaybackSynchronized)_palyer.GetStreamPlayback());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user