Ejemplo n.º 1
0
 void OnDestroy()
 {
     Destroy(oldBulbOn);
     Destroy(oldBulbOff);
     TD.destroyComponents = true;
     TD.destroyScript     = true;
     if (newBulb != null)
     {
         newBulb.SetActive(true);
     }
     LM.replaced = true;
     if (lampSwitch.lampOn)
     {
         lampSwitch.lampOn = false;
         LM.BulbChange();
     }
     LM.LightsPurple();
 }