title: Activating game object under conditions in c#
body: <p>I am using c# in unity to create this basic game, and i have lots of objects with the tag 'cube' that i would like to appear when count >= 10, count is a variable previously declared and works properly and increments when game items are collected.
  I have tried this many times in many ways but cannot seem to get it to work. This is the most recent try i had.</p>
  
  <pre><code>void WinText()
  {
      other.gameObject.tag == "Cube";
          if (count &gt;= 10)
          {
              other.gameObject.SetActive(True);
          }
  }
  </code></pre>
  
  <p>I get the error 'The name 'other' does not exist in current context' but similar code worked earlier in the code when doing the collecting game objects.</p>
  
  <pre><code>void OnTriggerEnter(Collider other)
      {
          if (other.gameObject.tag == "Pickup") 
          {
              other.gameObject.SetActive(false);
              count = count + 1;
              SetCountText();
              WinText ();
          }
      }
  </code></pre>
  
  <p>so i am not really sure how i am meant to be able to make the objects with the tag 'Cube' appear when a certain condition is met. I have looked around on the unity website for help on object destruction, i found some code that would be useful but they had no examples in C# only JavaScript
  (<a href="http://docs.unity3d.com/Documentation/ScriptReference/Object.Destroy.html" rel="nofollow">http://docs.unity3d.com/Documentation/ScriptReference/Object.Destroy.html</a>) Any help would be appreciated,
  Thanks :)</p>