private void OnTutorialShow(ShowableView showable) { showable.OnShow -= OnTutorialShow; var tutorialScreen = showable.GetComponent <TutorialScreenView>(); tutorialScreen.OnClose += OnTutorialClose; tutorialScreen.Open(); }
private void OnStartScreenShow(ShowableView showable) { showable.OnShow -= OnStartScreenShow; PlayerState playerState = playerStateStorage.Get(); level.Init(playerState.Level); levelGenerator.NewLevel(level, OnLevelGenerate); }
private void OnHide(ShowableView levelCompleteScreenShowable) { levelCompleteScreenShowable.OnHide -= OnHide; var skillsScreenShowable = skillsScreen.GetComponent <ShowableView>(); skillsScreenShowable.OnHide += OnSkillsScreenHide; skillsScreenShowable.Show(); }
public void OnLevelStartScreenHide(ShowableView showable) { if (tutorialScreen.IsOpened) { return; } game.Resume(); }
private void OnStartScreenHide(ShowableView showable) { showable.OnHide -= OnStartScreenHide; PlayerState playerState = playerStateStorage.Get(); if (playerState.Level == 0 && !playerState.WasTutorialShown) { var tutorialShowable = tutorialScreen.GetComponent <ShowableView>(); tutorialShowable.OnShow += OnTutorialShow; tutorialShowable.Show(); playerState.WasTutorialShown = true; } }
public void OnLevelCompleteScreenShow(ShowableView showable) { Everyplay.StopRecording(); }
public void OnLevelStartScreenShow(ShowableView showable) { Everyplay.StartRecording(); }
public void OnGameOverScreenShow(ShowableView showable) { Everyplay.PauseRecording(); }
private void OnHideForRestart(ShowableView showable) { showable.OnHide -= OnHideForRestart; Game.LoadLevel(); }
private void OnSkillsScreenHide(ShowableView showable) { showable.OnHide -= OnSkillsScreenHide; game.LoadLevel(); }
public void OnGameOverScreenHide(ShowableView showable) { game.Resume(); }
public void OnGameOverScreenShow(ShowableView showable) { game.Pause(); }
public void OnTutorialHide(ShowableView showable) { game.Resume(); }
public void OnTutorialPreShow(ShowableView showable) { game.Pause(); }