From c52deacf6ab1329ea2f2d00519b76901e3426a66 Mon Sep 17 00:00:00 2001 From: unknown <john.schihada@hotmail.com> Date: Thu, 12 Nov 2020 00:16:25 +0100 Subject: [PATCH] Adjusted Animation due to new ScrollDetails Panel --- Assets/Scripts/InventoryStuff/ScrollDetails.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/InventoryStuff/ScrollDetails.cs b/Assets/Scripts/InventoryStuff/ScrollDetails.cs index 6d4fe4a2..e528d375 100644 --- a/Assets/Scripts/InventoryStuff/ScrollDetails.cs +++ b/Assets/Scripts/InventoryStuff/ScrollDetails.cs @@ -77,8 +77,10 @@ public void setScroll(Scroll s) public void animateScrollParameter(string label) { var obj = ParameterDisplays.Find(x => x.transform.GetChild(0).GetComponent<RenderedScrollFact>().Label == label); - Animator temp = obj.GetComponentInChildren<Animator>(); - temp.SetTrigger("animateHint"); + //Animate original ScrollParameter + obj.GetComponentInChildren<Animator>().SetTrigger("animateHint"); + //Animate rendered ScrollParameter + obj.transform.GetChild(0).GetComponent<DropHandling>().associatedDropHandling.GetComponentInParent<Animator>().SetTrigger("animateHint"); } public void magicButton() -- GitLab