예제 #1
0
 public Hero(HeroFactory factory)
 {
     weapon = factory.CreateWeapon();
     movement = factory.CreateMovement();
 }
예제 #2
0
 public Hero(HeroFactory factory)
 {
     weapon   = factory.CreateWeapon();
     movement = factory.CreateMovement();
 }