예제 #1
0
 public PropertiesAI(PropertiesAI properties)
 {
     Speed  = properties.Speed;
     Hp     = properties.Hp;
     Damage = properties.Damage;
     paths  = properties.paths;
     Money  = properties.Money;
 }
예제 #2
0
    private void Start()
    {
        _curretnProprty = new PropertiesAI(_startProperty);
        _waves          = Waves();

        Properties(ref _waves);

        StartCoroutine(ItimerBot());
    }
예제 #3
0
 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);
     }
 }