title: Pass argument to UnityEvent
body: <p>Ok, I'm confused a bit. I studied <code>UnityEvent</code> and Messaging System by <a href="https://unity3d.com/ru/learn/tutorials/topics/scripting/events-creating-simple-messaging-system" rel="noreferrer">this</a> tutorial. But I have one question, that I cannot understand. How can I pass arguments to Invoking function?</p>
  
  <p>For example(I have <code>EventManager</code> like in tutorial):</p>
  
  <pre><code>void OnEnable() {
          EventManager.StartListening ("OnPlayerTeleport", TeleportPlayer);
      }
  
      void OnDisable() {
          EventManager.StopListening ("OnPlayerTeleport", TeleportPlayer);
      }
  
      void TeleportPlayer () {
          float yPos = transform.position.y;
          yPos += 20.0f;
          transform.position = new Vector3 (transform.position.x, yPos, transform.position.z);
      }
  </code></pre>
  
  <p>And I have trigger:</p>
  
  <pre><code>void Update () {
      if (Input.GetButtonDown ("Teleport")) {
          EventManager.TriggerEvent ("OnPlayerTeleport");
      }
  }
  </code></pre>
  
  <p>But, what if I want to pass 'height' value to function 'TeleportPlayer':</p>
  
  <pre><code>void TeleportPlayer (float h) {
      float yPos = transform.position.y;
      yPos += h;
      transform.position = new Vector3 (transform.position.x, yPos, transform.position.z);
  }
  </code></pre>
  
  <p>How can I do this?</p>