public override void OnInspectorGUI() { DrawDefaultInspector(); WeatherScript weatherRenderer = (WeatherScript)target; if (GUILayout.Button("Generate new weather texture")) { weatherRenderer.GenerateAndChangeWeatherTexture(); } }
public void GenerateNewWeatherAction() { weather.GenerateAndChangeWeatherTexture(); }