/// <summary> /// Initialize using api_key /// </summary> /// <param name="apiKey"></param> public NasaOpenApi(string apiKey) { //8 = DEMO_KEY if (string.IsNullOrWhiteSpace(apiKey) || apiKey.Length < 8) { throw new ArgumentException("Provided api_key is invalid, genere new key using https://api.nasa.gov/"); } Apod = new Apod(apiKey, _nasaOpenApiState); NeoFeed = new NeoFeed(apiKey, _nasaOpenApiState); NeoLookup = new NeoLookup(apiKey, _nasaOpenApiState); NeoToday = new NeoToday(apiKey, _nasaOpenApiState); NeoSentry = new NeoSentry(apiKey, _nasaOpenApiState); NeoBrowse = new NeoBrowse(apiKey, _nasaOpenApiState); NeoStats = new NeoStats(apiKey, _nasaOpenApiState); MarsPhotos = new MarsPhotos(apiKey, _nasaOpenApiState); EarthImage = new EarthImage(apiKey, _nasaOpenApiState); EarthAssets = new EarthAssets(apiKey, _nasaOpenApiState); //MarsWeather = new MarsWeather(apiKey, _nasaOpenApiState); Tle = new Tle(_nasaOpenApiState); }
void Start() { detects_per_day = new Dictionary <string, float> (); foreach (string s in Group.group_list) { detects_per_day.Add(s, 0); } // duplicate the original texture and assign to the material //Texture2D lightmap = Instantiate(this.maprenderer.material.GetTexture("_Lightmap")) as Texture2D; //this.maprenderer.material.SetTexture("_Lightmap", lightmap); this.map = new EarthImage( // lightmap this.maprenderer.material.GetTexture("_Lightmap") as Texture2D , this.maprenderer ); this.map.redraw(true); }
void Start () { detects_per_day = new Dictionary<string, float> (); foreach (string s in Group.group_list) detects_per_day.Add (s, 0); // duplicate the original texture and assign to the material //Texture2D lightmap = Instantiate(this.maprenderer.material.GetTexture("_Lightmap")) as Texture2D; //this.maprenderer.material.SetTexture("_Lightmap", lightmap); this.map = new EarthImage ( // lightmap this.maprenderer.material.GetTexture("_Lightmap") as Texture2D , this.maprenderer ); this.map.redraw(true); }