16
NGUI 3 Support / Re: MissingReferenceException inside NGUI
« on: July 01, 2014, 10:26:09 AM »
Ok traced this error to this code:
Label.gameObject is turned off on Start.
Label.gameObject is turned off on Start.
- void Awake()
- {
- BattleMain.OnEquationChange += OnOnEquationChange; //<- Activates while Label.gameObject is not active, so i think this is what causing problem. Still need to do some testing.
- }
- private void OnOnEquationChange()
- {
- Label.text = "2+2";
- }