In the method CalculateLevel() we are calling:
Experience experience = GetComponent<Experience>();
again. Is that needed or is the call in Awake enough?
In the method CalculateLevel() we are calling:
Experience experience = GetComponent<Experience>();
again. Is that needed or is the call in Awake enough?
No, that’s definitely not needed, it actually masks the global experience variable.
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.