public void EnableTurbine() { //used to display the numbers for the output values next to the minimap StartCoroutine(simulator.calculateAddedPower()); turbineAnim.EnableRotation(); turbineSpawner.numberOfTurbinesOperating++; }
public void EnableTurbine() { //used to display the numbers for the output values next to the minimap StartCoroutine(simulator.calculateAddedPower()); turbineAnim.EnableRotation(); turbineSpawner.numberOfTurbinesOperating++; damager.AddTurbineToList(gameObject); //adds the turbine game object to the list of "ready for damage" list. }