消消方块阵换皮表情
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.1 KiB

1 week ago
import { _decorator, Component, EventTouch, Node } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('SuDacePoint')
export class SuDacePoint extends Component {
/**是否上梯口 */
@property({displayName: '是否上梯口'})
isUpStairs: boolean = false;
/**是否下梯口 */
@property({displayName: '是否下梯口'})
isDownStairs: boolean = false;
/**是否是悬崖 */
@property({displayName: '是否是悬崖'})
isCliff: boolean = false;
/**是否墙体 */
@property({displayName: '是否墙体'})
isWall: boolean = false;
/**是否是陷阱 */
@property({displayName: '是否是陷阱'})
isTrap: boolean = false;
/**是否是宝箱 */
@property({displayName: '是否是宝箱'})
isBox: boolean = false;
protected onEnable(): void {
this.node.on(Node.EventType.TOUCH_START, this.onTouchStart, this);
}
protected onDisable(): void {
this.node.off(Node.EventType.TOUCH_START, this.onTouchStart, this);
}
private onTouchStart(event: EventTouch): void {
}
update(deltaTime: number) {
}
}