Esempio n. 1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();
        LevelLoader l = (LevelLoader)target;

        if (GUILayout.Button("Reload Level"))
        {
            l.ClearLevel(!EditorApplication.isPlaying);
            l.LoadLevel();
        }
    }