Exemplo n.º 1
0
 private static void DrawRaise(IGameEvent gameEvent)
 {
     GameEventEditors.DrawPlaymodeLabel("Raise event");
     if (GUILayout.Button("Raise"))
     {
         gameEvent.RaiseGameEvent();
     }
 }
        private void DrawRaise(TGameEvent gameEvent)
        {
            GameEventEditors.DrawPlaymodeLabel("Raise event");
            GUILayout.BeginHorizontal();

            argumentValue = DrawArgumentField(argumentValue);
            if (GUILayout.Button("Raise"))
            {
                gameEvent.RaiseGameEvent(argumentValue);
            }

            GUILayout.EndHorizontal();
        }