changed a value and some formatting
This commit is contained in:
@@ -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"]);
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user