public void CompareGreetings()
    {
        if (CurrentGameState == GameState.CompareGreetings)
        {
            InputController.WatchSceneGesture();

            if (Player.PlayerGreeting == CurrentGuest.WantedGreeting)
            {
                CurrentGuest.SetGreetedRight(true);
                ScoreController.AddCombo(CurrentGuest.combo);
                ScoreController.AddPoints(CurrentGuest.points * ScoreController.GetCombo());
            }
            else
            {
                CurrentGuest.SetGreetedRight(false);
                ScoreController.ResetCombo();
            }

            Timer.EndTimer();

            CurrentGuest.SetGreetingTime(Timer.Time);

            CurrentGameState = GameState.WatchScene;
        }
    }
Esempio n. 2
0
    //タップした時のノーツの判定(高橋)
    private void Judgment()
    {
        var NotesPos = gameObject.transform.position;

        comboController.AddCombo();
        //エフェクトの再生
        var        obj  = Instantiate(tapEffect, NotesPos, Quaternion.identity);
        GameObject game = new GameObject("Empty");

        obj.transform.parent = game.transform;
        game.AddComponent <Effect>();
    }