RefreshEXP¶
This method refreshes the rendered EXP orbs visually involving the expholder. It is mostly called by Update.
- If the
expholderdoesn't exist, it is created as a new GameObject namedexpholderchilded to theGUICamerawith a tag ofDelAftBtl(meaning it will get destroyed on ReturnToOverworld) - All existing
bigexporbsandsmallexporbsare destroyed bigexporbsis recreated with lengthexpreward/ 10 floored and each element is created as aPrefabs/Objects/ExpOrbGUIinstance childed to theexpholderwith a scale of (0.35, 0.35, 0.35) and a local position of (8.5 - index * 0.65, -4.26, 10.0)smallexporbsis recreated with lengthexpreward- (expreward/ 10 floored) * 10 and each element is created as aPrefabs/Objects/ExpOrbGUIinstance childed to theexpholderwith a scale of (0.25, 0.25, 0.25) and a local position of (8.5 - index * 0.5, -4.9, 10.0)oldexpis set toexprewardwhich prevents the calling of this method by Update untilexprewardchanges