So, i want to know what is the right way from an FsmVariable to Object-Prefab (NGUI UIFont)?
currently im doing
...
public FsmObject font;
Object realFont = font.Value;
lbl.font = realFont as UIFont;
...
but i doesnt work, the result is always UnityEnginge.GameObject instead of UIFont.
what is wrong here?
Thanks