示例#1
0
 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.");
     }
 }
示例#2
0
 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.");
         }
     }
 }