public static CCTouchHandler handlerWithDelegate(ICCTouchDelegate pDelegate, int nPriority) { CCTouchHandler handler = new CCTouchHandler(); if (handler.initWithDelegate(pDelegate, nPriority)) { return(null); } return(null); }
/// <summary> /// allocates a TouchHandler with a delegate and a priority /// </summary> public static CCTouchHandler handlerWithDelegate(ICCTouchDelegate pDelegate, int nPriority) { CCTouchHandler pHandler = new CCTouchHandler(); if (pHandler.initWithDelegate(pDelegate, nPriority)) { pHandler = null; } else { pHandler = null; } return pHandler; }
/// <summary> /// allocates a TouchHandler with a delegate and a priority /// </summary> public static CCTouchHandler handlerWithDelegate(ICCTouchDelegate pDelegate, int nPriority) { CCTouchHandler pHandler = new CCTouchHandler(); if (pHandler.initWithDelegate(pDelegate, nPriority)) { pHandler = null; } else { pHandler = null; } return(pHandler); }