Exemple #1
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        GUI.enabled = Application.isPlaying;

        CharacterEvent e = target as CharacterEvent;

        if (GUILayout.Button("Trigger"))
        {
            e.Raise(DummyCharacter.NewDummy);
        }
    }