title: how to send target object in an event to handler function in phaser 3
body: <p>i'm new in <a href="/questions/tagged/phaser-3" class="post-tag" title="show questions tagged &#39;phaser-3&#39;" rel="tag">phaser-3</a> and i have very basic problems in it.<br>
  one of my problems is getting target game object(leftArrow) in handler function when i set an <a href="/questions/tagged/event" class="post-tag" title="show questions tagged &#39;event&#39;" rel="tag">event</a>.</p>
  
  <p>i tried this code and i can't get target object parameters:</p>
  
  <pre><code>leftArrow.customParams = {direction: 1};
  leftArrow.setInteractive({pixelPerfect: true});
  leftArrow.on('pointerdown', swipe, this);
  
  function swipe(target){
  
      console.log(target.customParams.direction);
  
  }
  </code></pre>