public override void Update() { Room r = MapEditor.Instance.State.SelectedRoom; SelectedEntity ??= EntityRegistry.EntityPlacements[0]; if (HeldEntity != null) { HeldEntity.Room = r; if (Input.Mouse.LeftClick) { HandleClick(); } else if (Input.Mouse.LeftHold) { HandleDrag(); } else if (Input.Mouse.LeftUnclick) { HandleUnclick(); } else { HandleMove(); } } else { HeldEntity = SelectedEntity.Create(r); HeldEntity.SetArea(Hold); } }