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