using UnityEngine; using System.Collections; namespace WorldStreamer2 { /// /// Object to move by world mover. /// public class ObjectToMove : MonoBehaviour { /// /// The world mover. /// // public WorldMover worldMover; void Start() { GameObject worldMover = GameObject.FindGameObjectWithTag(WorldMover.WORLDMOVERTAG); if (worldMover != null) worldMover.GetComponent().AddObjectToMove(transform); } } }