using Godot; using Newlon.Components.Level; namespace Newlon.Debug; public partial class Cheats : Node { public override void _Input(InputEvent @event) { if (@event.IsActionPressed("cheat_add_sun")) { RuntimeLevelData.Instance.AddSun(50); } if (@event.IsActionPressed("cheat_zombie_spawn")) { var spawner = GD.Load("res://scenes/debug_zombie_spawner.tscn").Instantiate(); GetTree().CurrentScene.AddChild(spawner); } } }