public override void OnInspectorGUI() { base.OnInspectorGUI(); AutomaticAssignerScript myTarget = target as AutomaticAssignerScript; if (GUILayout.Button("Assign Files")) { myTarget.AssignAudioFiles(); } }
public static void Awake() { AutomaticAssignerScript.AssignAudioClips(); sourceRoot = new GameObject("Sound Source Root"); sourceRoot.transform.SetParent(Database.Instance.transform); }
void Awake() { /* TODO : !!! This call should be moved somewhere else !!! */ SoundSystem.Awake(); AutomaticAssignerScript.AssignObjects(); }