Exemplo n.º 1
0
 // Way 3: Method Injection
 public void end(IChoiceHandler choiceHandler)
 {
     // For way 1
     ChoiceHandler.Next();
     // For way 2
     _choiceHandler.Next();
     // For way 3
     choiceHandler.Next();
 }
Exemplo n.º 2
0
 public Example(IChoiceHandler handler)
 {
     handler.next();
 }
Exemplo n.º 3
0
 public DialogueSuper(IChoiceHandler choiceHandler)
 {
     _choiceHandler = choiceHandler;
 }
 public DialogueSuper(IChoiceHandler ch)
 {
     this.ch = ch;
 }