public void Awake() { if (collection == null) { Debug.LogError("No ItemCollection found on Drag accepter!", transform); return; } // Got a col iCollection = (IInventoryDragAccepter)GetComponent(typeof(IInventoryDragAccepter)); if (iCollection == null) { Debug.LogWarning("InventoryDragAccepter has a collection, but collection does not implement IInventoryDragAccepter!", transform); return; } window.OnShow += WindowOnShow; }