public override GameObject GetMapPresentation(PlaneMap map) { GameObject go = (GameObject)Instantiate(MapPresentation, map.transform.position, map.transform.rotation); float scale = (float)map.flatGeo.mapScale; go.transform.localScale = new Vector3(scale, scale, scale); return(go); }
// Use this for initialization void Awake() { myMap = GetComponent <PlaneMap>(); mapPlane = new Plane(transform.up, transform.position); cam = camGO.GetComponent <Camera>(); }
//Called when registering to map to provide object that moves in map public abstract GameObject GetMapPresentation(PlaneMap map);