diff --git a/GameEngine/src/main/java/gameEngine/entites/GameObject.java b/GameEngine/src/main/java/gameEngine/entites/GameObject.java index a8f3a7b..6f1f3ff 100644 --- a/GameEngine/src/main/java/gameEngine/entites/GameObject.java +++ b/GameEngine/src/main/java/gameEngine/entites/GameObject.java @@ -1,7 +1,9 @@ package gameEngine.entites; +import gameEngine.entites.gameComponents.EditorButton; import gameEngine.entites.gameComponents.GameComponent; import gameEngine.entites.gameComponents.Mesh; +import gameEngine.entites.gameComponents.TextMesh; import gameEngine.scenes.GameScene; import gameEngine.views.Window; @@ -46,10 +48,16 @@ public void updateComponents(boolean isEditorScene) { for (GameComponent component : gameComponents) { - if (isEditorScene) { + if (isEditorScene) { //Editorシーンでも機能するコンポーネント if (component instanceof Mesh) { component.update(); } + else if (component instanceof TextMesh) { + component.update(); + } + else if(component instanceof EditorButton){ + component.update(); + } } else { component.update(); }