idk i'm the only contributer so doesnt matter :/
This commit is contained in:
@@ -3,10 +3,10 @@ using System;
|
||||
|
||||
public partial class dialog_trigger_area : Area2D
|
||||
{
|
||||
[Export(PropertyHint.File, "*json")]
|
||||
string dialogFile;
|
||||
[Signal] public delegate void InteractDialogueEventHandler();
|
||||
[Export(PropertyHint.File, "*json")] string dialogFile;
|
||||
public void OnInteraction(string playerName)
|
||||
{
|
||||
GetNode("/root/main/dialog_bubble").Call("ImportString",dialogFile,playerName);//signal instead of call?
|
||||
|
||||
}
|
||||
}
|
||||
|
11
src/scene-scripts/tiles/audioplayer_tile.cs
Normal file
11
src/scene-scripts/tiles/audioplayer_tile.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Godot;
|
||||
|
||||
public partial class audioplayer_tile : StaticBody2D
|
||||
{
|
||||
[Export] bool soundOn = true;
|
||||
public void OnAudioFinished()
|
||||
{
|
||||
if (soundOn) GetNode<AudioStreamPlayer2D>("audio_stream_player_2d").Play();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user