Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: ggmann on November 05, 2012, 03:13:06 AM
-
i have singleton GameManager, there is function Play which i want call with ButtonMessage but, i set as target GameObject with this singleton and after reloading Scene connection between ButtonMessage target and singleton loose, singleton live but target setted to the other singleton which destroy if already exist one.
what i doing wrong ?
-
What does a singleton have to do with a button?
-
Rewrite the NGUI button to use your singleton if you want to use it.
Instead of sending to target, it should just call:
GameManager.Instance.Method();