// Use this for initialization void Start() { attacks = gameObject.GetComponent <CreateAttack>(); healthBar = gameObject.GetComponent <HealthChange>(); spawnPoint = spawner.GetComponent <EnemySpawn>(); dashTimer = 0; }
public AffixFactory(string name, List <string> categories, int level, int rarity, CreateAttack attack) { this.name = name; this.categories = categories; this.level = level; this.rarity = rarity; this.attack = attack; }
// Defines a new prefix [Affix]. private void AffixFactory(List <AffixFactory> factories, string name, int level, int rarity, string groups, CreateAttack createAttack) { factories.Add(new AffixFactory(name, groups.Split(' ').ToList(), level, rarity, createAttack)); }