changed a value and some formatting

This commit is contained in:
2022-11-29 22:09:05 +01:00
parent 2f57e22f06
commit 078695b02d
2 changed files with 7 additions and 8 deletions

View File

@@ -6,14 +6,13 @@ public partial class dialog_trigger_area : Area2D
[Export(PropertyHint.File, "*json")]
string dialogFile;
public override void _Ready()
{
{
using var file = FileAccess.Open(dialogFile, FileAccess.ModeFlags.Read);
string text = file.GetAsText();
var jsonFile = JSON.ParseString(text);
Dictionary allDialog = (Dictionary)jsonFile;
GD.Print(allDialog["debugAnswer"]);
GD.Print(allDialog["randomWelcomeText"]);
}