public void Scale(int scaleAmount) { if (map == null) { findMap(); } if (Handler == null) { findHandler(); } var t = new RangeTileProviderOptions(); t.SetOptions(scaleAmount, scaleAmount, scaleAmount, scaleAmount); map.SetExtentOptions(t); Handler.GetComponent <vars>().CurrScale = scaleAmount; }
public void main_cam_activator() { fog.SetActive(true); main_script.SetExtentOptions(now_cam_by(main_cam_gb, min_view_all, max_view_all)); main_cam.enabled = true; debug_ss.dms.debug_send("main cam: " + main_cam.enabled); ipy = true; for (int i = 0; i < pl_List.Count; i++) { if (pl_List[i].Icao == _now_plane) { debug_ss.dms.debug_send("off cam"); pl_List[i].plane.GetComponent <plane_cam_hold>().plane_cam.enabled = false; _now_plane = ""; now_use_cam_id = -1; break; } } now_use_cam_id = -1; }
public void ChangeExtentOptions() { _abstractMap.SetExtentOptions(new RangeTileProviderOptions { east = 2, west = 3, north = 0, south = 1 }); }