title: unity 5 c# enable disable gameobject script
body: <p>Hi I new coding in c# &amp; I working on a script to enable / disable a <strong>Unity 5</strong> gameobject clicking on another object for both actions, the first part runs ok, but in the second part to re-enable the object show me this error:</p>
  
  <blockquote>
    <p>Assets/Script/Activar.cs(11,5): error CS1519: Unexpected symbol `else'
    in class, struct, or interface member declaration</p>
  </blockquote>
  
  <p>this is the script:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>using System.Collections;
  using UnityEngine;
  
  public class Activar : MonoBehaviour {
   public GameObject modify;
  
   void Update () {
    if (Input.GetMouseButton (0))
     modify.SetActive (false);
   }
           else {
     modify.SetActive (true);
    }
   }
   </code></pre>
  </div>
  </div>
  </p>
  
  <p>So what can I do to solve this?
  Thanks :)</p>