public void DisableTurbine() { //used to display the numbers for the output values next to the minimap StartCoroutine(simulator.calculateSubstractedPower()); turbineAnim.DisableRotation(); turbineSpawner.numberOfTurbinesOperating--; }
public void DisableTurbine() { //used to display the numbers for the output values next to the minimap StartCoroutine(simulator.calculateSubstractedPower()); turbineAnim.DisableRotation(); turbineSpawner.numberOfTurbinesOperating--; damager.RemoveTurbineFromList(gameObject); //removes the turbine game object from the list of "ready for damage" list. }