Exemplo n.º 1
0
    public void Dismiss()
    {
        if (alive && symptoms.Count > 0)
        {
            Die();
        }
        else if (alive)
        {
            wwInterface.callEvent("Player_Success");
        }

        if (gameController)
        {
            gameController.PatientWasDismissed(gameObject);
        }
    }
Exemplo n.º 2
0
    public void LoadNextStage()
    {
        if (currentStage < 5)
        {
            SceneManager.LoadScene("Stage" + ++currentStage);

            wwInterface.setState("Game_Start", "Gameplay");
            wwInterface.callEvent("Play_Music");

            GameObject.FindObjectOfType <DataBank>().stage = currentStage;
        }
        else
        {
            SceneManager.LoadScene("Win");
        }
    }