fix only fisrt
This commit is contained in:
@@ -206,6 +206,9 @@ public class SimulationModelMove : SimulationModel
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool isFirstTransport = true;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
protected override IEnumerator RunSimulationCoroutine()
|
protected override IEnumerator RunSimulationCoroutine()
|
||||||
{
|
{
|
||||||
@@ -412,6 +415,16 @@ public class SimulationModelMove : SimulationModel
|
|||||||
currentCount = moveData_loading.loaded_count;
|
currentCount = moveData_loading.loaded_count;
|
||||||
SetBubble(currentCount);
|
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++)
|
for (int i = 0; i < moveData_loading.loaded_count; i++)
|
||||||
{
|
{
|
||||||
GameObject product = null;
|
GameObject product = null;
|
||||||
@@ -432,6 +445,17 @@ public class SimulationModelMove : SimulationModel
|
|||||||
SimulationModelStore storeModel = (SimulationModelStore)model;
|
SimulationModelStore storeModel = (SimulationModelStore)model;
|
||||||
currentCount = moveData_loading.loaded_count;
|
currentCount = moveData_loading.loaded_count;
|
||||||
SetBubble(currentCount);
|
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++)
|
for (int i = 0; i < moveData_loading.loaded_count; i++)
|
||||||
{
|
{
|
||||||
GameObject product = null;
|
GameObject product = null;
|
||||||
|
|||||||
@@ -21,9 +21,9 @@ namespace Octopus.Simulator.Networks
|
|||||||
onParameterRecived += FindAnyObjectByType<ProjectDataManager>().RequestInfo;
|
onParameterRecived += FindAnyObjectByType<ProjectDataManager>().RequestInfo;
|
||||||
onParameterRecived += FindAnyObjectByType<LogicDataManager>().RequestInfo;
|
onParameterRecived += FindAnyObjectByType<LogicDataManager>().RequestInfo;
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
config.projectId = "37";
|
config.projectId = "40";
|
||||||
//config.simulationId = "15";
|
//config.simulationId = "15";
|
||||||
config.logicId = "42";
|
config.logicId = "45";
|
||||||
WebParameters.config = config;
|
WebParameters.config = config;
|
||||||
onParameterRecived?.Invoke();
|
onParameterRecived?.Invoke();
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user