using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
|
namespace Weather
|
{
|
public class WeatherController : MonoBehaviour
|
{
|
|
public GameObject[] plane;
|
|
private Renderer[] planeRenderers;
|
|
void Start() {
|
planeRenderers = new Renderer[plane.Length];
|
for(int i = 0 ; i< plane.Length; i++) {
|
planeRenderers[i] = plane[i].GetComponent<Renderer>();
|
}
|
}
|
|
public Renderer GetRenderer(int index) {
|
return planeRenderers[index];
|
}
|
}
|
}
|