Example #1
0
    public override void OnInspectorGUI()
    {
        bool isEnabled = _dsp.IsInstantiated();

        if (!isEnabled)
        {
            EditorGUILayout.LabelField("Press Play!", EditorStyles.centeredGreyMiniLabel);
        }
        // events
        GUI.enabled = isEnabled;
        EditorGUILayout.Space();
        // bang
        if (GUILayout.Button("bang"))
        {
            _dsp.SendEvent(Hv_spherescape_AudioLib.Event.Bang);
        }

        GUILayout.EndVertical();

        // parameters
        GUI.enabled = true;
        GUILayout.BeginVertical();
        EditorGUILayout.Space();
    }
Example #2
0
 public void Trigger()
 {
     heavyScript.SendEvent(Hv_spherescape_AudioLib.Event.Bang);
 }