Loading…
None
String updated in the repository |
|
None
String updated in the repository |
|
alex7850
Translation added |
|
None
String updated in the repository |
|
In the above example, Godot wouldn't know whether to return [code]3[/code] or [code]8[/code] when using [code]inventory["healing heart"][/code]. This is why keys need to be unique.
При выполнении кода из примера выше, Godot не поймёт, что он должен возвращать, [code]3[/code] или [code]8[/code], при попытке получить значение по ключу [code]"healing heart"[/code] из [code]inventory[/code]. Поэтому ключи должны быть уникальными.