Beispiel #1
0
 public void Touched(Vector2 touch)
 {
     if (!VpMachine.Deal())
     {
         Handheld.Vibrate();
     }
 }
Beispiel #2
0
    // Start is called before the first frame update
    void Awake()
    {
        VpMachine.Init();
        VpMachine.OnHandDealt  += HandDealt;
        VpMachine.OnCardsDrawn += HandDealt;

        try
        {
            if (File.Exists(Application.persistentDataPath + "/" + fileName))
            {
                using (var reader = new StreamReader(Application.persistentDataPath + "/" + fileName))
                {
                    var rawJson = reader.ReadToEnd();
                    VpMachine.statistics = JsonUtility.FromJson <Statistics>(rawJson);
                }
            }
        }
        catch
        {
        }

        if (VpMachine.statistics == null)
        {
            VpMachine.statistics = new Statistics();
        }
    }
Beispiel #3
0
 public void OnValueChanged(bool change)
 {
     VpMachine.ToggleIncorrectPlays();
 }
Beispiel #4
0
 public void Touched(Vector2 touch)
 {
     VpMachine.IncreaseHands();
 }
Beispiel #5
0
 public void Touched(Vector2 touch)
 {
     VpMachine.MaxBet();
 }