public PropertiesAI(PropertiesAI properties) { Speed = properties.Speed; Hp = properties.Hp; Damage = properties.Damage; paths = properties.paths; Money = properties.Money; }
private void Start() { _curretnProprty = new PropertiesAI(_startProperty); _waves = Waves(); Properties(ref _waves); StartCoroutine(ItimerBot()); }
private void СreateBot(PropertiesAI properties) { if (properties.Prefab != null) { var enemy = Instantiate(properties.Prefab, _startPoint.position, Quaternion.identity).GetComponent <AI>(); enemy.Properties = properties; currentsBot.Add(enemy); } }