コード例 #1
0
 public PaidWindowView(PaidWindow window, PaidWindowPass pass, DropZone paidChoice)
 {
     this.window     = window;
     this.pass       = pass;
     this.paidChoice = paidChoice;
     pass.Represent(window, paidChoice);
     SetActive(false);
     window.ObserveWindow(this);
 }
コード例 #2
0
        public void Represent(PaidWindow window)
        {
            this.window = window;
            var flag = CreateFlag(gameObject).AddComponent <PaidWindowFlag>();
            var pass = CreatePass(gameObject).AddComponent <DropZone>();

            flag.Represent(window, pass);
            gameObject.SetActive(false);
            window.ObserveWindow(this);
        }