コード例 #1
0
ファイル: FizzyoFramework.cs プロジェクト: Nabil372/fizzyo
        private FizzyoFramework()
        {
            if (_instance != null)
            {
                return;
            }

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


            User         = new FizzyoUser();
            Device       = new FizzyoDevice();
            Recogniser   = new BreathRecogniser();
            Achievements = new FizzyoAchievements();
        }
コード例 #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();
            }
        }
コード例 #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();
        }