title: Pass Method As EventDelegate
body: <p>I am attempting to pass a method as a parameter. But I am getting a compiler error and I dont quite understand what I am doing wrong?</p>
  
  <p>The compiler error is:</p>
  
  <blockquote>
    <p>Argument `#1' cannot convert 'method group' expression to type 'EventDelegate'</p>
  </blockquote>
  
  <pre><code>public class AssignEventDelegate : MonoBehaviour {
  
      public UISprite sprite;
  
      public void AddOnFinish (EventDelegate method) {
          EventDelegate.Add (sprite.GetComponent&lt;TweenScale&gt;().onFinished, method);
      }
  }
  
  public class AssignEventDelegateOther : MonoBehaviour {
  
      // Use this for initialization
      void Start () {
          // Compiler error occurs below
          GameObject.Find ("Main Camera").gameObject.GetComponent&lt;AssignEventDelegate&gt;().AddOnFinish( myOnFinish ); 
      }
  
      public void myOnFinish () {
          Debugger.print ("myOnFinish");
      }
  }
  </code></pre>