// Use this for initialization void Start() { w = player.GetComponent <Warmth>(); pl = transform.GetChild(0).GetComponent <Light>(); maxLightRange = pl.range; hp = maxVisibleWood * transferRate; }
// Use this for initialization void Start() { w = player.GetComponent <Warmth>(); pl = transform.GetChild(0).GetComponent <Light>(); maxLightRange = pl.range; hp = maxVisibleWood * transferRate; }