protected override void setReferences() { base.setReferences(); // GetComponentInParent also checks the current GameObject (as per the current prefab) parentWindow = GetComponentInParent <DogBrowser>(); }
public void Init(DogBrowser browser) { this.parentWindow = browser; setupButtons(); IsInitialized = true; }