// Start is called before the first frame update void Start() { RainScript = RainPrefab.GetComponent <RainScript2D>(); RainScript.RainIntensity = 0.1f; RainScript.CollisionMask = 0; _rain_heavy = false; _rain_stop = false; }
// Start is called before the first frame update void Start() { rainScript = GetComponentInChildren <RainScript2D>(); windZone = GetComponentInChildren <WindZone>(); controlPoints = GetComponentsInChildren <RainControlPoint>(); camera = Camera.main; currentIndex = 1; seedRb = FindObjectOfType <Seed>().GetComponent <Rigidbody2D>(); }
void Start() { animation = river.GetComponent("FloodingAnimation") as FloodingAnimation; rain = rainManager.GetComponent <RainScript2D>(); }
void Start() { rainOccurrence = GameObject.Find("RainPrefab2D").GetComponent <RainScript2D>(); soilID = this.gameObject.transform.parent.name; }