예제 #1
0
 // Use this for initialization
 void Start()
 {
     attacks    = gameObject.GetComponent <CreateAttack>();
     healthBar  = gameObject.GetComponent <HealthChange>();
     spawnPoint = spawner.GetComponent <EnemySpawn>();
     dashTimer  = 0;
 }
예제 #2
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;
 }
예제 #3
0
 // 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));
 }