Ejemplo n.º 1
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            GUI.enabled = Application.isPlaying;

            GameEventScriptableObject e = target as GameEventScriptableObject;

            if (GUILayout.Button("Invoke"))
            {
                e.Invoke();
            }
        }