From 28f4c5b7da1cea6a0ef7833760e3817982fa39f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Sch=C3=B6ner?= <tobias.stonehead@gmail.com> Date: Thu, 12 Jan 2023 22:53:28 +0100 Subject: [PATCH] fix: FactWrapper gets set correctly on dropped Fact display --- Assets/Scripts/InventoryStuff/DropHandling.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/Scripts/InventoryStuff/DropHandling.cs b/Assets/Scripts/InventoryStuff/DropHandling.cs index e912243a..d93622e6 100644 --- a/Assets/Scripts/InventoryStuff/DropHandling.cs +++ b/Assets/Scripts/InventoryStuff/DropHandling.cs @@ -29,6 +29,7 @@ public void OnDrop(PointerEventData eventData) rect.anchorMax = new Vector2(0.5f, 0.5f); currentFact = eventData.pointerDrag.GetComponent<FactWrapper>().fact; + current.GetComponent<FactWrapper>().fact = currentFact; Debug.Log("recieved Fact: " + currentFact.Id); CommunicationEvents.NewAssignmentEvent.Invoke(); -- GitLab