// Update is called once per frame void Update() { if (cloud.move) { MoveHorizontal(cloud.CheckDir(), cloud.moveSpeed); } }