public void HandleClick() { // spawn entity on cursor placer.Mode = EntityPlacerMode.BUILD; placer.Spawn(item.entity.Type); controller.InvalidateUI(); }
public void SetDeleteMode(bool isDeleteMode) { placer.Mode = isDeleteMode ? EntityPlacerMode.DELETE : EntityPlacerMode.NONE; controller.InvalidateUI(); }