fix: ScenarioManager重复Service属性导致编译失败
This commit is contained in:
parent
6030b8de07
commit
6f56cff655
Binary file not shown.
@ -17,12 +17,14 @@ namespace CounterDrone.Unity
|
||||
void Awake()
|
||||
{
|
||||
var paths = new UnityPathProvider();
|
||||
Debug.Log($"ScenarioManager.Awake: dbPath={paths.GetMainDbPath()}");
|
||||
var db = new DatabaseManager(paths).OpenMainDb();
|
||||
_service = new ScenarioService(
|
||||
new SimTaskRepository(db), new CombatSceneRepository(db),
|
||||
new ControlZoneRepository(db), new TargetConfigRepository(db),
|
||||
new EquipmentDeploymentRepository(db), new CloudDispersalRepository(db),
|
||||
new RoutePlanRepository(db), new WaypointRepository(db));
|
||||
Debug.Log("ScenarioManager.Awake: OK");
|
||||
}
|
||||
|
||||
public SimTask CreateTask(string name, string number) => _service.CreateTask(name, number);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user