17 lines
385 B
C#
17 lines
385 B
C#
|
|
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());
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|