void Start() { registry = transform.parent.gameObject.GetComponent <ChlorineRegister>(); registry.register(this); killingPower = registry.baseKillingPower; StartCoroutine("decay"); }
void Start() { registry = transform.parent.gameObject.GetComponent <BoidRegister>(); registry.register(this); rb = GetComponent <Rigidbody>(); chlorine = registry.maxChlorine; power = registry.maxPower; algaeCluster = registry.algaeCluster; chlorineClouds = registry.chlorineClouds; boids = new HashSet <BoidController>(); cluster = new HashSet <AlgaeController>(); clouds = new HashSet <ChlorineController>(); closestChunk = Vector3.zero; }