大侠
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.
 
 
 

14 lines
386 B

import { Component, _decorator, sp } from "cc";
import { EDITOR } from "cc/env";
const {ccclass, property,menu,executeInEditMode} = _decorator;
@ccclass
@executeInEditMode
export default abstract class EditorUIBtnBase extends Component{
isTick:boolean =false;
protected onLoad(): void {
EDITOR && this.trigger();
this.destroy();
}
abstract trigger();
}