コード例 #1
0
    private void performSceneTransition()
    {
        GameObject HM = GameObject.Find("HealthManager");

        if (HM != null)
        {
            Destroy(HM);
        }

        if (!givePrompt)
        {
            GameState.SetLastSceneLocation(SceneManager.GetActiveScene().name);
            GameState.PlayerPosition = position;
            SceneManager.LoadScene(scene);
        }
        else
        {
            GameState.AbandonQuest(quest);
        }
    }