Exemplo n.º 1
0
    private void Start()
    {
        Rewards = new RewardFactory();
        PlayerPrefs.SetInt("score", 0);
        Settings.Init();
        PlayerData.Init();
        StartCoroutine(ConnectToPlayfab());

#if UNITY_ANDROID && !UNITY_EDITOR
        androidApiLevel = int.Parse(SystemInfo.operatingSystem.Substring(SystemInfo.operatingSystem.IndexOf("-") + 1, 3));
        Debug.LogError("Running on Android API: " + androidApiLevel);
        Vibration.Initialize(androidApiLevel);
#endif
    }