Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        ISubjectByProxy real   = new RealSubject();
        ISubjectByProxy proxy1 = new Proxy(real);
        ISubjectByProxy proxy2 = new Proxy(real);

        proxy1.Action1(); // 간단한
        proxy2.Action1();
        proxy1.Action2(); // 실제
        proxy2.Action2();
    }