Progress bar going up when an enemy AI is close to you, and goes down when the enemy AI doesn't sense you.

you could make a float variable in your game instance (BarVlaue), then cast to your GI and set the variable from anywhere (e.g. the enemy which has the sense… can sense = cast to GI and set float) then in your UI cast to GI and GET the variable or just bind directly from the GI