예제 #1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        WeatherScript weatherRenderer = (WeatherScript)target;

        if (GUILayout.Button("Generate new weather texture"))
        {
            weatherRenderer.GenerateAndChangeWeatherTexture();
        }
    }
예제 #2
0
 public void GenerateNewWeatherAction()
 {
     weather.GenerateAndChangeWeatherTexture();
 }