public GameObject shipDoor;
progress += Time.deltaTime * speed;
shipDoor.transform.position = Vector3.Lerp (shipDoor.transform.position, new Vector3(shipDoor.transform.position.x, shipDoor.transform.position.y, shipDoor.transform.position.z - 0.05f), progress);
shipDoor.transform.position = Vector3.Lerp (shipDoor.transform.position, toPosition, progress);
public GameObject door;
))))) door.GetComponent<Animation>().PlayQueued("OpenAnim");