Don't use global instance. Move into cc::Director as a pointer member.