package gameEngine.entites.gameComponents; import gameEngine.entites.Entity; import gameEngine.entites.GameObject; import gameEngine.input.Input; import gameEngine.views.Window; import static org.lwjgl.glfw.GLFW.GLFW_KEY_G; public class CopyEntity extends GameComponent{ private Entity entity; public CopyEntity(Entity entity){ this.entity = entity; } public void update() { if(Input.GetKeyDown(GLFW_KEY_G)){ Window.currentScene.Instantiate((GameObject) entity); } } }