fix only fisrt
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user