예제 #1
0
 protected Person(float maxHealth, float moveSpeed, float armor)
 {
     Health      = new HealthCharacteristic(maxHealth, Die);
     MoveSpeed   = new SpeedCharacteristic(moveSpeed);
     PersonArmor = new ArmorCharacteristic(armor);
     Stats.Add(Type.Health, Health);
     Stats.Add(Type.Speed, MoveSpeed);
     Stats.Add(Type.Armor, PersonArmor);
 }
예제 #2
0
 public Breakable(float maxHealth, Transform transform)
 {
     Health    = new HealthCharacteristic(maxHealth, Die);
     Transform = transform;
 }