// Function to set the weather mode public void SetWeather(SVGImage bg_btn, WeatherClip clip) { hasWeather = thisScenario.SetWeatherVideo(clip); // Returns true if video found UpdateStartButton(); SetSelectedButton(parent_weathertoggles, bg_btn); }
// Change the weather of the current video public bool SetWeatherVideo(WeatherClip clip) { // Find video _clip = clip.Clip; // If video found, set new video time if (_clip != null) { endtime = (float)_clip.length; return(true); } return(false); }
// Called when button created to set the variables public void SetWeatherClip(UI_SelectMode select, WeatherClip clip) { thisClip = clip; ui_select = select; image.sprite = clip.Icon; }