Example #1
0
 public Blob(
     string name,
     int health,
     int damage,
     IBehavior behavior,
     ISpecialAttack specialAttack)
 {
     this.Name          = name;
     this.CurrentHealth = health;
     this.initialHealth = health;
     this.CurrentDamage = damage;
     this.Behavior      = behavior;
     this.specialAttack = specialAttack;
 }
 void Awake()
 {
     _animator      = GetComponent <Animator>();
     _specialAttack = GetComponent <ISpecialAttack>();
 }