public TextSceneTempCreator(string scene, TextSceneDeserializer.TempSceneSaved callback) { state = State.SaveTemp; saveAndReloadTimer = Mathf.RoundToInt(SAVE_AND_RELOAD_FRAMES); saveAndReload = scene; saveAndReloadCallback = callback; }
public void DoSaveAndReload(string scene, TextSceneDeserializer.TempSceneSaved callback) { //Must wait a couple of frames before we do the save for prefabs to behave correctly. //TODO: Report bug. process = new TextSceneTempCreator(scene, callback); }