mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00:00
classref: Sync with current master branch (61598c5)
This commit is contained in:
@@ -431,7 +431,7 @@ The example below displays a list of numbers shown as words going from ``ZERO``
|
||||
}
|
||||
}
|
||||
|
||||
private List<int> _numbers = new();
|
||||
private Godot.Collections.Array<int> _numbers = new();
|
||||
|
||||
public override Godot.Collections.Array<Godot.Collections.Dictionary> _GetPropertyList()
|
||||
{
|
||||
@@ -468,7 +468,7 @@ The example below displays a list of numbers shown as words going from ``ZERO``
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user