private void SaveToDevice(UserData userData)
        {
            if (userData != null && GuideManager.GetInstance().HasFinished(GuideScriptID.G01))
            {
                string userJson = JsonConvert.SerializeObject(userData);

                PlayerPrefs.SetString(typeof(UserData).Name, userJson);
            }
        }
Beispiel #2
0
        public override void EnterScene()
        {
            CameraManager.GetInstance().openCamera(CameraType.Guide);

            UserData user = UserManager.GetInstance().user;

            TransitionEngine.onTransitionComplete += OnTransitionComplete;
            TransitionEngine.onScreenObscured     += OnScreenObscured;

            CreateMap();

            girlEntity = CreateGirlEntity(user.girl);
            girlEntity.Flip();

            petEntity = CreatePetEntity(user.GetActivePet());

            LayerManager.GetInstance().AddPopUpView <HomeWindow>();

            SoundManager.GetInstance().PlayBackgroundMusic(AudioRepository.BG_HOME.AsAudioClip(), 1.0f);

            EventBox.Send(CustomEvent.HOME_SHOW_FUNCTIONS);

            GuideManager.GetInstance().Trigger(GuideScriptID.G01);
        }