You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Babushka/scripts/CSharp/GameEntity/EntityPlacer/TrashEntityPlacer.cs

18 lines
571 B

using Babushka.scripts.CSharp.GameEntity.Entities;
using Babushka.scripts.CSharp.GameEntity.Management;
using Godot;
namespace Babushka.scripts.CSharp.GameEntity.EntityPlacer;
public partial class TrashEntityPlacer : Node2D
{
private string _trashEntityType = TrashEntity.OWN_TYPE_NAME;
public override void _Ready()
{
TrashEntity entity = new TrashEntity();
entity.sceneName = EntityManager.Instance.CurrentEntitySceneContainer!.sceneName;
entity.position = GlobalPosition;
EntityManager.Instance.AddEntity(entity);
}
}