Пример #1
0
		/** creates a CCLabelTTF from a fontname, horizontal alignment, vertical alignment, dimension in points, line break mode, and font size in points.
		 Supported lineBreakModes:
		 - iOS: all UILineBreakMode supported modes
		 - Mac: Only NSLineBreakByWordWrapping is supported.
		 @since v1.0
		 */

		protected override void initWithGear (CCFactoryGear gear)
		{
			base.initWithGear (gear);
			_gear.gameObject.name = "LabelTTF";
//			_gear.gameObject.transform.localScale = new Vector3 (1, 1, 1);
			_content = new CCLabelContent ();
			_content.gameObject.transform.parent = gameObject.transform;
//			_content.renderer.sortingOrder = 1;
		}
Пример #2
0
        /** creates a CCLabelTTF from a fontname, horizontal alignment, vertical alignment, dimension in points, line break mode, and font size in points.
         * Supported lineBreakModes:
         * - iOS: all UILineBreakMode supported modes
         * - Mac: Only NSLineBreakByWordWrapping is supported.
         * @since v1.0
         */

        protected override void initWithGear(CCFactoryGear gear)
        {
            base.initWithGear(gear);
            _gear.gameObject.name = "LabelTTF";
//			_gear.gameObject.transform.localScale = new Vector3 (1, 1, 1);
            _content = new CCLabelContent();
            _content.gameObject.transform.parent = gameObject.transform;
            //			_content.renderer.sortingOrder = 1;
            ccUtils.SetRenderColor(_content.renderer, Color.white, new Color32(0, 0, 0, 0));
        }