示例#1
0
    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);
    }
示例#2
0
 // Use this for initialization
 void Awake()
 {
     myMap    = GetComponent <PlaneMap>();
     mapPlane = new Plane(transform.up, transform.position);
     cam      = camGO.GetComponent <Camera>();
 }
示例#3
0
 //Called when registering to map to provide object that moves in map
 public abstract GameObject GetMapPresentation(PlaneMap map);