public override void OnInspectorGUI() { SFX_II sfx = (SFX_II)target; DrawDefaultInspector(); if (GUILayout.Button("Populate Lists")) { sfx.PopulateLists(); Debug.Log("Populated SFX_II Lists"); } }
public void Awake() { if (instance != null) { Destroy(gameObject); } else { instance = this; } PopulateLists(); mixer = Resources.Load("Master") as AudioMixer; }