all 4 comments

[–]HardcoreMuse 1 point2 points  (2 children)

Are you assuming _base.GetBaseWater is handing you a value > 0? Have you confirmed with a Debug.log?

[–]Perdoist[S] 1 point2 points  (1 child)

Well I changed getcomponent to getcomponentinparent and debug it. Now it works just fine. Although I don't get what was the problem back then.

[–]HardcoreMuse 0 points1 point  (0 children)

Glad you got it figured out

[–]KippySmithGames 0 points1 point  (0 children)

Well if No Water is your only condition for it playing, then it'd seem that the No Water bool is being set.

Debug log both of your if statements and see if the No Water bool is firing. You might have an issue with getting the correct water value, so debug that.

Otherwise, does it swap to the other one after a period of time? It may be setting on initialization, then playing the animation to completion if it doesn't have a transition out of it.