void Start() { temperature = UIManager.Instance.TemperaturScript(); sciencePoints = UIManager.Instance.SPScript(); initialSpeed = speed; enemyExpressions = GetComponent <Animator>(); }
// Start is called before the first frame update private void Start() { buildingName = GetComponent <Building>().buildingName; attackInterval = GetComponent <Building>().attackInterval; attackIntervalUpgraded = GetComponent <Building>().attackIntervalUpgraded; costOfUpgrade = GetComponent <Building>().costOfUpgrade; costOfbuild = GetComponent <Building>().costOfBuilding; range = GetComponent <Building>().range; rangeUpgraded = GetComponent <Building>().rangeUpgraded; damage = GetComponent <Building>().damage; damageUpgraded = GetComponent <Building>().damageUpgraded; buildingsSoundSource.Play(); sciencePoints = UIManager.Instance.SPScript(); }