Exemplo n.º 1
0
    public void ClickRestart()
    {
        Time.timeScale          = 1f;
        GameManager.CurrentTime = 0f;
        ViewfinderTrigger.ResetStreak();


        manager.AudioSource.Stop();
        sceneHandler.LoadGameScene();
    }
Exemplo n.º 2
0
    public void ClickToLoadHardMode()
    {
        gameDatas.GameModeHard = true;
        gameDatas.IsInMenu     = false;

        GameManager.CurrentTime = 0f;
        ViewfinderTrigger.ResetStreak();

        sceneHandler.LoadGameScene();
    }
Exemplo n.º 3
0
 private void Missed()
 {
     gameObject.GetComponent <SphereCollider>().enabled = false;
     text.color    = Color.grey;
     text.text     = HitType.Miss.ToString().ToUpper();
     Direction     = Vector3.zero;
     isShowingText = true;
     isDespawning  = true;
     isFading      = true;
     ViewfinderTrigger.ResetStreak();
 }