Beispiel #1
0
 public void fireAction()
 {
     foreach (Fuse fuse in fuses)
     {
         fuse.PowerAble = !fuse.PowerAble;
         fuse.RefreshItems();
     }
     // nicht gut!
     if (StateMachine.Instance.State == GameState.WaterBoiler03)
     {
         GetComponent <AudioSource>().Play();
         if (Boiler != null)
         {
             Boiler.GetComponent <BoilerExplode>().Sleep = false;
         }
     }
 }