protected override void onStart() { leverMonitor_GO = leverMonitor_F.First(); if (leverMonitor_GO != null) { fm = leverMonitor_GO.GetComponent <FamilyMonitoring> (); } else { Debug.Log("LeverManager: Warning!!! no monitor for levers in this scene on start."); } }
public LeverManager() { if (Application.isPlaying) { leverMonitor_GO = leverMonitor_F.First(); if (leverMonitor_GO != null) { fm = leverMonitor_GO.GetComponent <FamilyMonitoring> (); } else { Debug.Log("LeverManager: Warning!!! no monitor for levers in this scene on start."); } } }