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