diff --git a/Assets/WorkSpace/LH/Simulation/SimulationModelMove.cs b/Assets/WorkSpace/LH/Simulation/SimulationModelMove.cs index 9f79ceef..c09db155 100644 --- a/Assets/WorkSpace/LH/Simulation/SimulationModelMove.cs +++ b/Assets/WorkSpace/LH/Simulation/SimulationModelMove.cs @@ -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; diff --git a/Assets/WorkSpace/LH/Web/WebReceiver.cs b/Assets/WorkSpace/LH/Web/WebReceiver.cs index deb38e4a..71afe980 100644 --- a/Assets/WorkSpace/LH/Web/WebReceiver.cs +++ b/Assets/WorkSpace/LH/Web/WebReceiver.cs @@ -21,9 +21,9 @@ namespace Octopus.Simulator.Networks onParameterRecived += FindAnyObjectByType().RequestInfo; onParameterRecived += FindAnyObjectByType().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