Exemple #1
0
 public ModelDuck()
 {
     FlyBehavior   = new FlyNoWay();
     QuackBehavior = new Quack();
 }
Exemple #2
0
 public RubberDuck()
 {
     quackBehavior = new QuackWithWings();
     flyBehavior   = new FlyNoWay();
 }
Exemple #3
0
 public DecoyDuck()
 {
     quackBehavior = new QuackNoWay();
     flyBehavior   = new FlyNoWay();
 }
Exemple #4
0
 private void Awake()
 {
     DuckType     = _type;
     FlyBehaviour = new FlyNoWay();
 }