door.Translate (new Vector3(0, 0.2f * Time.deltaTime, 0));
if(door.position.y <100)
{
door.Translate (new Vector3(0, 0.2f * Time.deltaTime, 0));
}
if(open)
{
door.GetComponent<Animation>().PlayQueued("CloseAnim");
open = false;
}
else
{
door.GetComponent<Animation>().PlayQueued("OpenAnim");
open = true;
}
door.GetComponent<Animation>().PlayQueued("OpenAnim");
public GameObject door;
)))))