private void OnTriggerEnter(Collider other) { if (other.tag == "FireHolder") { FireHolder otherFireHolder = other.GetComponent <FireHolder>(); if (isLit && !otherFireHolder.isLit) { otherFireHolder.LightUp(); LightUp(); } } }
private void Start() { pickup = GetComponent <Pickup>(); fireHolder = GetComponentInChildren <FireHolder>(); fireHolder.LightUp(); }