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); }
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); }