Esempio n. 1
0
        public static void Load()
        {
            if (!PlayerPrefs.HasKey("SlideId"))
            {
                return;
            }

            Instantiator.GetInstance()._currentSlideId = PlayerPrefs.GetInt("SlideId");
        }
Esempio n. 2
0
 public static void Save()
 {
     PlayerPrefs.SetInt("SlideId", Instantiator.GetInstance()._currentSlideId);
 }
Esempio n. 3
0
 private void Awake()
 {
     _instance = this;
     SlideIdLoader.Load();
 }
Esempio n. 4
0
 void InstantiateNewSlide()
 {
     Instantiator.GetInstance().InstantiateSlide();
 }