feat: 미션 판정 (완료/채점) — 입고 게임 최소 루프 완성

- MissionManager: 슬롯 감시 → 전부 정답 시 완료, 점수/오답/시간 표시, R키 재시작
- PutawaySlot: Changed 이벤트로 상태 변화 알림
- MissionSetup: Mission 오브젝트 + MissionManager 추가

이동→집기→적치→정답판정→완료/채점 한 판 루프 완성.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
jklee
2026-06-14 20:14:51 +09:00
parent aa302b1d67
commit f230b438ed
5 changed files with 139 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using SinoWms.Gameplay;
namespace SinoWms.EditorTools
{
/// <summary>
/// 미션 판정 매니저를 씬에 추가한다. 메뉴 <b>SinoWMS/Setup Mission</b>.
/// Play 후 모든 슬롯을 정답으로 채우면 완료 + 점수 표시.
/// </summary>
public static class MissionSetup
{
[MenuItem("SinoWMS/Setup Mission")]
public static void Setup()
{
var go = GameObject.Find("Mission") ?? new GameObject("Mission");
if (go.GetComponent<MissionManager>() == null)
go.AddComponent<MissionManager>();
EditorSceneManager.MarkSceneDirty(go.scene);
Selection.activeGameObject = go;
Debug.Log("[MissionSetup] 완료. Play 후 모든 슬롯을 정답으로 채우면 미션 완료.");
}
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 9a8d41437743f4655996e49253cc72ad