Ejemplo n.º 1
0
 private void OnDestroy()
 {
     if (m_CurrentSmokeDetector != null)
     {
         m_CurrentSmokeDetector.DetectingSmoke(false);
         m_CurrentSmokeDetector = null;
     }
 }
Ejemplo n.º 2
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "SmokeDetector")
     {
         m_CurrentSmokeDetector = other.GetComponent <SmokeDetector>();
         m_CurrentSmokeDetector.DetectingSmoke(true);
     }
 }