Esempio n. 1
0
    private void Awake()
    {
        char problem = 'a';

        DMHandlerA handlerA = new DMHandlerA();
        DMHandlerB handlerB = new DMHandlerB();
        DMHandlerC handlerC = new DMHandlerC();

        handlerA.SetNextHandler(handlerB).SetNextHandler(handlerC);

        handlerA.DoHandle(problem);
    }