Пример #1
0
 void Start()
 {
     temperature      = UIManager.Instance.TemperaturScript();
     sciencePoints    = UIManager.Instance.SPScript();
     initialSpeed     = speed;
     enemyExpressions = GetComponent <Animator>();
 }
Пример #2
0
 // 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();
 }