public override void OnInspectorGUI()
    {
        if (GUILayout.Button("Show dialogue GUI"))
        {
            DialogueSceneController dsc = (DialogueSceneController)target;
            dsc.ActivateStuff(true);
        }
        if (GUILayout.Button("Hide dialogue GUI"))
        {
            DialogueSceneController dsc = (DialogueSceneController)target;
            dsc.ActivateStuff(false);
        }

        DrawDefaultInspector();
    }
Exemplo n.º 2
0
    public void Awake()
    {
        Debug.Log("Loading DialogueSceneController");
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
        }

        if (DataManager.instance.CurrentState.CurrentScene == null)
        {
            //Debug.Log("No scene to play. Returning to Title.");
            //DataManager.instance.LoadNextScene(new TitleScene());
            Debug.Log("Playing test scene");
            _currentScene = SceneFinder.GetSceneFromName("TestScene");
        }
        else
        {
            _currentScene = SceneFinder.GetSceneFromName(DataManager.instance.CurrentState.CurrentScene);
        }
    }