Skip to content
Snippets Groups Projects
Commit f7bfd1b2 authored by Martins Mozeiko's avatar Martins Mozeiko
Browse files

Correctly show API mode in Loader when running inside editor

parent 07d62a63
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,7 @@ public static class SimulatorManagerEditor
{
var api = Object.Instantiate(Simulator.Loader.Instance.ApiManagerPrefab);
api.name = "ApiManager";
Simulator.Loader.Instance.LoaderUI.SetLoaderUIState(LoaderUI.LoaderUIStateType.READY);
}
}
}
......
......@@ -68,7 +68,7 @@ namespace Simulator
public SimulatorManager SimulatorManagerPrefab;
public ApiManager ApiManagerPrefab;
private LoaderUI LoaderUI { get => FindObjectOfType<LoaderUI>(); set { } }
public LoaderUI LoaderUI => FindObjectOfType<LoaderUI>();
// NOTE: When simulation is not running this reference will be null.
public SimulationModel CurrentSimulation;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment