Esempio n. 1
0
        private FizzyoFramework()
        {
            if (_instance != null)
            {
                return;
            }

            Debug.Log("[FizzyoFramework] Instantiate.");


            User         = new FizzyoUser();
            Device       = new FizzyoDevice();
            Recogniser   = new BreathRecogniser();
            Achievements = new FizzyoAchievements();
        }
Esempio n. 2
0
        private FizzyoFramework()
        {
            if (_instance != null)
            {
                Debug.Log("fizzprob: ");
                return;
            }
            else
            {
                Debug.Log("[FizzyoFramework] Instantiate.");


                User         = new FizzyoUser();
                Device       = new FizzyoDevice();
                Recogniser   = new BreathRecogniser();
                Achievements = new FizzyoAchievements();
                Analytics    = new FizzyoAnalytics();
            }
        }
Esempio n. 3
0
        private void InitializeInstance()
        {
            if (IsInitialized)
            {
                return;
            }

            _instance = this;

            if (Application.isPlaying)
            {
                DontDestroyOnLoad(_instance.transform.root);
            }

            User         = new FizzyoUser();
            Device       = new FizzyoDevice();
            Recogniser   = new BreathRecogniser();
            Achievements = new FizzyoAchievements();
            Analytics    = new FizzyoAnalytics();
            Session      = new FizzyoSession();
        }