public static void Load() { if (!PlayerPrefs.HasKey("SlideId")) { return; } Instantiator.GetInstance()._currentSlideId = PlayerPrefs.GetInt("SlideId"); }
public static void Save() { PlayerPrefs.SetInt("SlideId", Instantiator.GetInstance()._currentSlideId); }
private void Awake() { _instance = this; SlideIdLoader.Load(); }
void InstantiateNewSlide() { Instantiator.GetInstance().InstantiateSlide(); }