void Start() { raining = GameObject.Find("RainPrefab").GetComponent <RainScript>(); raining.RainIntensity = 0; TreeColor = gameObject.GetComponent <Renderer>(); lightIntensity = GameObject.Find("DirectionalLight").GetComponent <Light>(); }
private void createPlayerRainWithIntensity(float intensity, RAKPlayer player) { RainScript rain = Instantiate(terrainMaster.getPlayerRainPrefab(), player.transform).GetComponent <RainScript>(); rain.FollowCamera = player.GetComponent <Camera>(); rain.RainIntensity = intensity; }
// Start is called before the first frame update void Start() { sun = GameObject.Find("Sun"); moon = GameObject.Find("Moon"); sunLight = sun.GetComponent <Light>(); moonLight = moon.GetComponent <Light>(); rainMaker = gameObject.GetComponent <RainScript>(); }
void Start() { _DisplayItemScript = GetComponent <DisplayItemScript>(); _UnityChanScript = GetComponent <UnityChanScript>(); _RainScript = GetComponent <RainScript>(); for (int i = 0; i < _DisplayItemScript.getItemList().Length; i++) { dropdownObject.options.Add(new TMPro.TMP_Dropdown.OptionData(_DisplayItemScript.getItemList()[i].name)); } dropdownObject.captionText.text = dropdownObject.options[0].text; }
void Start() { water_plain_100 = new WaterLevel(90, 97, 95, 100, 0); water_plain_80 = new WaterLevel(70, 77.8f, 95, 200, 0.001f); water_plain_60 = new WaterLevel(50, 58.55f, 95, 250, 0.001f); water_plain_40 = new WaterLevel(30, 37.7f, 95, 300, 0.001f); water_plain_20 = new WaterLevel(10, 18, 95, 200, 0.001f); s = GameObject.Find("Slider").GetComponent <Slider>(); t100 = GameObject.Find("f100").GetComponent <Toggle>(); t80 = GameObject.Find("f080").GetComponent <Toggle>(); t60 = GameObject.Find("f060").GetComponent <Toggle>(); t40 = GameObject.Find("f040").GetComponent <Toggle>(); t20 = GameObject.Find("f020").GetComponent <Toggle>(); rscript = GameObject.Find("RainPrefab").GetComponent <RainScript>(); url = "http://localhost:8000/wsp/"; }
// Use this for initialization void Start() { rain = GameObject.FindGameObjectWithTag("superRain").GetComponent <RainScript>(); cameras = new Dictionary <string, GameObject>(); for (byte i = 0; i < 10; i++) { cameras["autokam_" + i] = GameObject.FindGameObjectWithTag("autokam_" + i); } for (byte i = 0; i < 10; i++) { if (i != 1) { cameras["autokam_" + i].SetActive(false); } } rain.Camera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera>(); }
void Start() { rainsc = GetComponent<RainScript>(); }
void Start () { rain = GameObject.FindObjectOfType<RainScript>(); black = GameObject.FindObjectOfType<RawImage>(); }