diff --git a/GameEngine/src/main/java/gameEngine/GameEditor.java b/GameEngine/src/main/java/gameEngine/GameEditor.java index d8d06d6..c51335d 100644 --- a/GameEngine/src/main/java/gameEngine/GameEditor.java +++ b/GameEngine/src/main/java/gameEngine/GameEditor.java @@ -142,7 +142,7 @@ // New GameObjectを作成し、画面を更新 private void createNewGameObject() { - gameScene.CreateNewObject(); // 新しいGameObjectを作成 + gameScene.createNewObject(); // 新しいGameObjectを作成 applyGameObjectChanges(); repaint(); // 画面を再描画 } @@ -155,7 +155,7 @@ GameObject selectedObject = gameScene.gameObjects.get(selectedId); if (selectedObject != null) { // コンポーネントを追加 (例: Mesh など) - gameScene.AddComponent(selectedObject); + gameScene.addComponent(selectedObject); JOptionPane.showMessageDialog(this, "Component Added to " + selectedObject.name); } }