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; } }
// Start is called before the first frame update void Start() { parentScript = transform.parent.GetComponent <TurbineScript>(); sprRend = gameObject.GetComponent <SpriteRenderer>(); sprRend.sprite = null; }