Skip to content

Commit

Permalink
Fix incorrect C# example using _GetConfigurationWarnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kleonc committed Nov 1, 2023
1 parent 56d0a58 commit 00a296a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tutorials/best_practices/godot_interfaces.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,13 @@ access.
};

// Warn users if the value hasn't been set.
public String _GetConfigurationWarnings()
public string[] _GetConfigurationWarnings()
{
if (EnemyScn == null)
return "Must initialize property 'EnemyScn'.";
return "";
{
return new string[] { "Must initialize property 'EnemyScn'." };
}
return Array.Empty<string>();
}
}

Expand Down

0 comments on commit 00a296a

Please sign in to comment.