示例#1
0
    public override void OnInspectorGUI()
    {
        SFX_II sfx = (SFX_II)target;

        DrawDefaultInspector();

        if (GUILayout.Button("Populate Lists"))
        {
            sfx.PopulateLists();
            Debug.Log("Populated SFX_II Lists");
        }
    }
示例#2
0
    public void Awake()
    {
        if (instance != null)
        {
            Destroy(gameObject);
        }
        else
        {
            instance = this;
        }

        PopulateLists();

        mixer = Resources.Load("Master") as AudioMixer;
    }