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

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