Exemplo n.º 1
0
 void SetSlideSwipe()
 {
     if (_movementDirection < 0)
     {
         SlideSwipes.GetInstance().LeftSwipes++;
     }
     else if (_movementDirection > 0)
     {
         SlideSwipes.GetInstance().RightSwipes++;
     }
 }
Exemplo n.º 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");
            }
        }
Exemplo n.º 3
0
 private void Awake()
 {
     _instance = this;
     SlideSwipesLoader.Load();
 }
Exemplo n.º 4
0
 public static void SaveLeft()
 {
     PlayerPrefs.SetInt("Left", SlideSwipes.GetInstance().LeftSwipes);
 }
Exemplo n.º 5
0
 public static void SaveRight()
 {
     PlayerPrefs.SetInt("Right", SlideSwipes.GetInstance().RightSwipes);
 }