コード例 #1
0
ファイル: SlideIdLoader.cs プロジェクト: xloderunnerx/Test09
        public static void Load()
        {
            if (!PlayerPrefs.HasKey("SlideId"))
            {
                return;
            }

            Instantiator.GetInstance()._currentSlideId = PlayerPrefs.GetInt("SlideId");
        }
コード例 #2
0
 public static void Save()
 {
     PlayerPrefs.SetInt("SlideId", Instantiator.GetInstance()._currentSlideId);
 }
コード例 #3
0
 private void Awake()
 {
     _instance = this;
     SlideIdLoader.Load();
 }
コード例 #4
0
ファイル: MovementAway.cs プロジェクト: xloderunnerx/Test09
 void InstantiateNewSlide()
 {
     Instantiator.GetInstance().InstantiateSlide();
 }