Ejemplo n.º 1
0
    private void Start()
    {
        currency = startingCurrency;

        build   = FindObjectOfType <BuildFunctions>();
        coal    = coalReference.GetComponent <CoalScript>();
        turbine = turbineReference.GetComponent <TurbineScript>();
        gas     = gasReference.GetComponent <NaturalGasScript>();
        solar   = solarReference.GetComponent <SolarScript>();



        TriggerEvent();
        if (excessPowerGrowth < 1)
        {
            excessPowerGrowth = 1;
        }
    }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     parentScript   = transform.parent.GetComponent <SolarScript>();
     sprRend        = gameObject.GetComponent <SpriteRenderer>();
     sprRend.sprite = null;
 }