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

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