public void Setup() { GameObject detailPanel = Object.Instantiate((GameObject)Resources.Load("Prefabs/Detail Panel")); detail = detailPanel.GetComponent <FileDetailView>(); Debug.Log(detail); }
// Start is called before the first frame update void Start() { fileDetailView = GetComponentInParent <FileDetailView>(); }