game registry internal refactor
This commit is contained in:
parent
be2ebf1223
commit
d5573db251
11 changed files with 68 additions and 188 deletions
|
|
@ -12,12 +12,6 @@ public partial class Cheats : Node
|
|||
{
|
||||
RuntimeLevelData.Instance.AddSun(50);
|
||||
}
|
||||
if (@event.IsActionPressed("cheat_zombie_spawn"))
|
||||
{
|
||||
var spawner = GD.Load<PackedScene>("res://scenes/debug_zombie_spawner.tscn").Instantiate<DebugZombieSpawner>();
|
||||
|
||||
GetTree().CurrentScene.AddChild(spawner);
|
||||
}
|
||||
if (@event.IsActionPressed("cheat_unlock_all"))
|
||||
{
|
||||
PlayerProgress.Instance.PlayerPlants = GameRegistry.GetPlants();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue