去除久设计
This commit is contained in:
@@ -17,48 +17,23 @@ export class CsuoComp extends CCComp {
|
||||
|
||||
}
|
||||
onTouch() {
|
||||
if(smc.vm_data.gems < smc.vm_data.unlock){
|
||||
oops.gui.toast("钻石不足")
|
||||
return
|
||||
}
|
||||
smc.vm_data.gems=smc.vm_data.gems-smc.vm_data.unlock;
|
||||
this.node.active=false;
|
||||
|
||||
}
|
||||
onOk(){
|
||||
this.node.active=false;
|
||||
}
|
||||
oncancel(){
|
||||
smc.vm_data.power.min=smc.vm_data.power.min+1;
|
||||
|
||||
|
||||
}
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param params 参数
|
||||
* {
|
||||
* title: 标题
|
||||
* content: 内容
|
||||
* okWord: ok按钮上的文字
|
||||
* okFunc: 确认时执行的方法
|
||||
* cancelWord: 取消按钮的文字
|
||||
* cancelFunc: 取消时执行的方法
|
||||
* needCancel: 是否需要取消按钮
|
||||
* }
|
||||
*/
|
||||
|
||||
|
||||
/** 视图层逻辑代码分离演示 */
|
||||
start() {
|
||||
// var entity = this.ent as ecs.Entity; // ecs.Entity 可转为当前模块的具体实体对象
|
||||
// this.on(ModuleEvent.Cmd, this.onHandler, this);
|
||||
}
|
||||
|
||||
/** 全局消息逻辑处理 */
|
||||
// private onHandler(event: string, args: any) {
|
||||
// switch (event) {
|
||||
// case ModuleEvent.Cmd:
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */
|
||||
reset() {
|
||||
|
||||
@@ -314,7 +314,7 @@ export class MissionComp extends CCComp {
|
||||
}
|
||||
}
|
||||
heros_call(){
|
||||
let heros=smc.vm_data.role.fight_heros
|
||||
let heros=smc.vm_data.fight_heros
|
||||
for(let i=0;i<heros.length;i++){
|
||||
this.addHero(heros[i],i)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user