private void LightFireplace() { IsLit = true; SendMessages(); Stove stove = this as Stove; if (stove != null) { stove.LightAllConnectedFireplaces(); } }
void Awake() { _anim = GetComponent <Animator>(); _stove = GetComponentInChildren <Stove>(); }
private void LightFireplace() { IsLit = true; SendMessages(); Stove stove = this as Stove; if (stove != null) { stove.LightAllConnectedFireplaces(); } }
void Awake() { _anim = GetComponent <Animator>(); _stove = GetComponentInChildren <Stove>(); }