Exemple #1
0
        private bool DrawCustomInspectors(SerializedProperty currentProperty, MMF_Feedback feedback)
        {
            if (feedback.HasCustomInspectors)
            {
                switch (currentProperty.type)
                {
                case "MMF_Button":
                    MMF_Button myButton = (MMF_Button)(currentProperty.MMFGetObjectValue());
                    if (GUILayout.Button(myButton.ButtonText))
                    {
                        myButton.TargetMethod();
                    }
                    return(true);
                }
            }

            return(false);
        }
 public override void InitializeCustomAttributes()
 {
     TestPlayButton = new MMF_Button("Debug Play Sound", TestPlaySound);
     TestStopButton = new MMF_Button("Debug Stop Sound", TestStopSound);
 }