Now move the actual query (Lines 1-4) into your update function.
Your values are only computed once now. You want the values queried everytime your update is triggered.
And make sure they're available, too for your OnEnter-Function.
__________________
The cataclysm broke the world ... and the pandas could not fix it!
Last edited by Rilgamon : 11-10-14 at 11:15 AM.
|