title: Unity monodevelop, if activate gameobject run script
body: <p>Hello I will actually keep this short.I butchered this piece of code. I can't find the solutions.</p>
  
  <p>My code</p>
  
  <pre><code>using UnityEngine;
  using System.Collections.Generic;
  using UnityEngine.UI;
  
  public class Linkbutton : MonoBehaviour{ 
  
      void Update()
      {   
          if (GameObject.activeSelf) 
           public void LinkFunc();
  
              {
              Application.OpenURL ("https://stolpersteinecoevorden.jimdo.com/stolpersteine/"); running = false; 
  
          }
                  }
      }
  </code></pre>
  
  <p>The errors I'm having</p>
  
  <p><a href="https://i.stack.imgur.com/E0ym1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E0ym1.png" alt="enter image description here"></a></p>
  
  <p>I have been trying stuff for hours without a solution in view. </p>
  
  <p>Thanks in advance</p>