Beispiel #1
0
 void SetSlideSwipe()
 {
     if (_movementDirection < 0)
     {
         SlideSwipes.GetInstance().LeftSwipes++;
     }
     else if (_movementDirection > 0)
     {
         SlideSwipes.GetInstance().RightSwipes++;
     }
 }
Beispiel #2
0
        public static void Load()
        {
            if (PlayerPrefs.HasKey("Left"))
            {
                SlideSwipes.GetInstance().LeftSwipes = PlayerPrefs.GetInt("Left");
            }

            if (PlayerPrefs.HasKey("Right"))
            {
                SlideSwipes.GetInstance().RightSwipes = PlayerPrefs.GetInt("Right");
            }
        }
Beispiel #3
0
 private void Awake()
 {
     _instance = this;
     SlideSwipesLoader.Load();
 }
 public static void SaveLeft()
 {
     PlayerPrefs.SetInt("Left", SlideSwipes.GetInstance().LeftSwipes);
 }
 public static void SaveRight()
 {
     PlayerPrefs.SetInt("Right", SlideSwipes.GetInstance().RightSwipes);
 }