コード例 #1
0
    void Start()
    {
        DMInvoker         invoker   = new DMInvoker();
        DMReceiver1       receiver1 = new DMReceiver1();
        ConcreateCommand1 command   = new ConcreateCommand1(receiver1);

        invoker.AddCommand(command);
        invoker.InvokeCommand();
    }
コード例 #2
0
ファイル: MD07Command.cs プロジェクト: kismy/DesignMode
 public ConcreteCommand1(DMReceiver1 receiver)
 {
     receiver1 = receiver;
 }
コード例 #3
0
 public ConcreteCommand1(DMReceiver1 receiver1)
 {
     this.receiver1 = receiver1;
 }
コード例 #4
0
 public ConcreateCommand1(DMReceiver1 receiver)
 {
     mReceiver = receiver;
 }