@senspark/ee
Version:
utility library for cocos creator
14 lines (13 loc) • 505 B
TypeScript
/// <reference types="cocos-api" />
declare type ConditionCallback = (listener: cc.TouchOneByOne, touch: cc.Touch) => boolean;
export declare class ConditionTouchListener extends cc.Component {
private conditionCallback;
constructor();
private updateTouchEvent;
private modifyTouchBegan;
private modifyTouchEnd;
update(delta: number): void;
/** Sets the condition callback used in touch start event. */
setConditionCallback(callback: ConditionCallback): this;
}
export {};