fix only fisrt

This commit is contained in:
lwj
2025-07-22 18:25:07 +09:00
parent 261fbac539
commit 7d3e2c7a5f
2 changed files with 26 additions and 2 deletions

View File

@@ -206,6 +206,9 @@ public class SimulationModelMove : SimulationModel
}
}
}
bool isFirstTransport = true;
/*
protected override IEnumerator RunSimulationCoroutine()
{
@@ -412,6 +415,16 @@ public class SimulationModelMove : SimulationModel
currentCount = moveData_loading.loaded_count;
SetBubble(currentCount);
if ( isFirstTransport)
{
SimulationModelStore source = DataManager.I.GetModel(moveData_loading.source_queues[0]) as SimulationModelStore;
this.transform.position = source.GetTransporterPosition().position;
isFirstTransport = false;
}
for (int i = 0; i < moveData_loading.loaded_count; i++)
{
GameObject product = null;
@@ -432,6 +445,17 @@ public class SimulationModelMove : SimulationModel
SimulationModelStore storeModel = (SimulationModelStore)model;
currentCount = moveData_loading.loaded_count;
SetBubble(currentCount);
if ( isFirstTransport)
{
SimulationModelStore source = DataManager.I.GetModel(moveData_loading.source_stores[0]) as SimulationModelStore;
this.transform.position = source.GetTransporterPosition().position;
isFirstTransport = false;
}
for (int i = 0; i < moveData_loading.loaded_count; i++)
{
GameObject product = null;

View File

@@ -21,9 +21,9 @@ namespace Octopus.Simulator.Networks
onParameterRecived += FindAnyObjectByType<ProjectDataManager>().RequestInfo;
onParameterRecived += FindAnyObjectByType<LogicDataManager>().RequestInfo;
#if UNITY_EDITOR
config.projectId = "37";
config.projectId = "40";
//config.simulationId = "15";
config.logicId = "42";
config.logicId = "45";
WebParameters.config = config;
onParameterRecived?.Invoke();
#else