private void SceneLoaded(object sender, WriterSceneInfoSelectedEventArgs e) { if (CurrentCoroutine != null) { StopCoroutine(CurrentCoroutine); } CurrentCoroutine = StartCoroutine(AutosaveCoroutine()); }
protected virtual void Initialize(object sender, WriterSceneInfoSelectedEventArgs e) { var sceneInfo = e.SceneInfo; var encounterStatus = new EncounterStatus(new EncounterBasicStatus(), new EncounterContentStatus()); var encounter = new UserEncounter(sceneInfo.User, sceneInfo.Encounter, encounterStatus); var encounterResult = new WaitableTask <UserEncounter>(encounter); var loadingInfo = new LoadingReaderSceneInfo(sceneInfo.User, sceneInfo.LoadingScreen, encounterResult); LoadingReaderSceneInfoSelector.Select(this, new LoadingReaderSceneInfoSelectedEventArgs(loadingInfo)); }
private void SceneLoaded(object sender, WriterSceneInfoSelectedEventArgs e) { Button.interactable = true; Button.onClick.AddListener(StartReader); }