//================================================================================ // //================================================================================ using UnityEngine; using System.Collections; //================================================================================ // //================================================================================ namespace ReaderRabbit { //================================================================================ // //================================================================================ public class SceneSplash : SceneCommon { //================================================================================ // //================================================================================ [SerializeField] string m_GotoLevel; //================================================================================ // //================================================================================ void OnApplicationPause(bool pauseStatus) { // Do nothing - do not save player data in Splash screen. } //================================================================================ // //================================================================================ void OnApplicationFocus(bool focusStatus) { // Do nothing - do not save player data in Splash screen. } //================================================================================ // //================================================================================ void OnApplicationQuit() { // Do nothing - do not save player data in Splash screen. } //================================================================================ // //================================================================================ protected override void Start() { base.Start(); PlayVideo.Instance().LoadAndPlay(this, VideoType.Introduction, PlayVideoGameTitleDelayed, PlayerPrefs.GetInt("language")); } //================================================================================ // //================================================================================ void PlayVideoGameTitle() { PlayVideo.Instance().LoadAndPlay(this, VideoType.GameTitle, SplashFinished, PlayerPrefs.GetInt("language")); } //================================================================================ // //================================================================================ void PlayVideoGameTitleDelayed() { Invoke("PlayVideoGameTitle", 0.01f); } //================================================================================ // //================================================================================ void SplashFinished() { KishiTechUnity.Loading.Loading.Instance().Show(); Application.LoadLevel(m_GotoLevel); } } // public class SceneSplash : KishiTechUnity.ScreenResolution.SceneRoot } // namespace ReaderRabbit