title: Unityscript Make object move slowly
body: <p>So I have no idea why this isn't working. I've asked my teacher but he's not at all helpful. In my game, I have an object, that when triggered, causes a wall to retract vertically. However, no matter how I fiddle with it, the object just automatically snaps to another location with no relation to where it just was. (I am able to get the object back just fine with different script to reset things). I added two functions to it so instead of instantly moving to the new location, it would slowly move, but it doesn't seem to be working at all.</p>
  
  <pre><code>var door: GameObject;
  var torch: GameObject;
  var flame: GameObject;
  
  function OnMouseDown(){
  for(var count: int = 0; count &lt; 10; count++)
      {
      door.transform.position = Vector3(0,0.1,0);
      torch.transform.position = Vector3(0,0.1,0);
      flame.transform.position = Vector3(0,0.1,0);
      yield WaitForSeconds(1.0);
      }
  // move door out of way
  }
  </code></pre>