title: How to use "OnClick.AddListener" on multiple GameObjects in one Frame
body: <p>I'm pretty new to Unity and C# scripting.</p>
  
  <p>In my scene I have four buttons. I declared them in my script as public and put the items (on type Button) via drag and drop in my inspector in unity. Depending on which button is clicked, i want my program to do something. You can see in the script below what I've done. That scripts works perfectly just like I want it to. </p>
  
  <pre><code>using UnityEngine;
  using UnityEngine.SceneManagement;
  using UnityEngine.UI;
  
  public class Example : MonoBehaviour
  {
      public Button Left;
      public Button Right;
      public Button Starten;
      public Button Zurueck;
  
      private void Start()
      { 
          loadRezept(0);
          Right.onClick.AddListener(iterationUp);
          Left.onClick.AddListener(iterationDown);
          Starten.onClick.AddListener(starten);
          Zurueck.onClick.AddListener(zurueck);
      }
  
  
  ... (here are the methods "iterationUp" and so on...)
  </code></pre>
  
  <p>This script work perfectly. But now there is my question: how can I do the same on using gameobjects?</p>
  
  <p>If I just change the type "Button" to "GameObject" I don't have the possibility to use "onClick.AddListener". I don't want a script for every single gameobject. I just want something like I posted above.</p>