Example #1
0
        private void LightFireplace()
        {
            IsLit = true;
            SendMessages();

            Stove stove = this as Stove;

            if (stove != null)
            {
                stove.LightAllConnectedFireplaces();
            }
        }
Example #2
0
 void Awake()
 {
     _anim  = GetComponent <Animator>();
     _stove = GetComponentInChildren <Stove>();
 }