BBGamelib.NSUtils.Assert C# (CSharp) Method

Assert() public static method

public static Assert ( bool check, string format ) : void
check bool
format string
return void
		public static void Assert(bool check, string format, params object[] args){
			if (!check) {
				throw new UnityException (string.Format (format, args));
			}
		}

Usage Example

        /** Executes an action, and returns the action that is executed.
         * The node becomes the action's target.
         * @warning Starting from v0.8 actions don't retain their target anymore.
         * @since v0.7.1
         * @return An Action pointer
         */
        public CCAction runAction(CCAction action)
        {
            NSUtils.Assert(action != null, "Argument must be non-nil");

            _actionManager.addAction(action, this, !_isRunning);
            return(action);
        }
All Usage Examples Of BBGamelib.NSUtils::Assert