Animation Event problem
I just want to disable the text when the animation ends. So I made a script including a function with ChangeMoneyText.SetActive(false). It has been working days ago. I dont know why that happening
As the warning box suggests, you surely have overloaded the $$anonymous$$illOnAnimationEnd
, meaning you have declared multiple times the $$anonymous$$illOnAnimationEnd
with different signatures (different parameters). If you want to avoid unexpected behaviour, only keep ONE function named $$anonymous$$illOnAnimationEnd
.
I have checked all the scripts 1 by 1 one but there are no other function about $$anonymous$$illOnAnimationEnd. By the way, this fuction is doing fine in another gameObject
EDIT: Solved the problem by changing GameObject to Text from Text$$anonymous$$eshPro
Have you tried to right-click on the animator and its animations and click on "Reimport"?
Haven't you multiple scripts attached to the same gameObject, each script defining their own
$$anonymous$$illOnAnimationEnd
function?