BBGamelib.CCDebug.Info C# (CSharp) Method

Info() public static method

public static Info ( string format ) : void
format string
return void
		public static void Info(string format, params object[] args){
			if (COCOS2D_DEBUG > 1){
				if(args.Length > 0)
					Debug.LogFormat (format, args);
				else
					Debug.Log(format);
			}
		}
		public static void Log(string format, params object[] args){

Usage Example

        public void initWithImageNamed(string imageName)
        {
            gameObject.name = imageName;
            CCSpriteFrame frame = CCSpriteFrameCache.sharedSpriteFrameCache.spriteFrameByName(imageName);

            if (frame == null)
            {
                CCDebug.Info("cocos2d:CC3Sprite: try to load '{0}' as a file.", imageName);
                string    path    = FileUtils.GetFilePathWithoutExtends(imageName);
                Texture2D texture = Resources.Load <Texture2D> (path);
                NSUtils.Assert(texture != null, "cocos2d:CC3Sprite: '{0}' not found.", path);
                frame = new CCSpriteFrame(texture, new Rect(Vector2.zero, new Vector2(texture.width, texture.height)));
                frame.semiTransparent = false;
            }
            initWithSpriteFrame(frame);
        }
All Usage Examples Of BBGamelib.CCDebug::Info