Beispiel #1
0
        public void Touch()
        {
            var touchedOrb = GetComponent <OrbData>();

            scoreManager.AddScore(touchedOrb.GetScore());
            orbDeleter.Delete();
            orbsManager.DeleteOrb();
            levelUpChecker.Check();
            templeScaler.Scale();
            scoreDisplayer.RefreshScoreText();
            sePlayer.SoundGetScoreSE();
            mokugyoAnimator.AnimateMokugyo();
            saveDataManager.Save();
        }
Beispiel #2
0
        private void CreateNewOrb()
        {
            var generatedOrb     = orbGenerator.GenerateOrb();
            var generatedOrbData = generatedOrb.GetComponent <OrbData>();
            var orbFlyer         = generatedOrb.GetComponent <OrbFlyer>();

            scoreManager.AddScore(generatedOrbData.GetScore());
            levelUpChecker.Check();
            orbsManager.DeleteOrb();
            orbFlyer.Fly();
            scoreDisplayer.RefreshScoreText();
            sePlayer.SoundGetScoreSE();
            mokugyoAnimator.AnimateMokugyo();
            SetLastOrbGenerateTime(DateTime.UtcNow);
            saveDataManager.Save();
        }