Esempio n. 1
0
    public void DisableTurbine()
    {
        //used to display the numbers for the output values next to the minimap
        StartCoroutine(simulator.calculateSubstractedPower());

        turbineAnim.DisableRotation();
        turbineSpawner.numberOfTurbinesOperating--;
    }
Esempio n. 2
0
    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.
    }