Merge pull request #96021 from jwodicka/jwodicka-docfix

Fix C# code example for `Object._get_property_list`
This commit is contained in:
Rémi Verschelde 2024-08-26 22:45:45 +02:00
commit 4a947f0811
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@
}
}
private List<int> _numbers = new();
private Godot.Collections.Array<int> _numbers = new();
public override Godot.Collections.Array<Godot.Collections.Dictionary> _GetPropertyList()
{
@ -173,7 +173,7 @@
if (propertyName.StartsWith("number_"))
{
int index = int.Parse(propertyName.Substring("number_".Length));
numbers[index] = value.As<int>();
_numbers[index] = value.As<int>();
return true;
}
return false;