技能设置清理
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { _decorator, Animation, Collider2D, Contact2DType, Tween, v3, Vec3 } from "cc";
|
||||
import { _decorator, Animation, CCBoolean, Collider2D, Contact2DType, Tween, v3, Vec3 } from "cc";
|
||||
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
||||
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
|
||||
import { BezierMove } from "../BezierMove/BezierMove";
|
||||
@@ -13,9 +13,9 @@ const { ccclass, property } = _decorator;
|
||||
@ccclass('AtkConCom')
|
||||
@ecs.register('AtkCon', false)
|
||||
export class AtkConCom extends CCComp {
|
||||
@property({ type:Boolean })
|
||||
@property
|
||||
public anmEnd: boolean = false;
|
||||
@property({ type:Boolean })
|
||||
@property
|
||||
public cbox: boolean = false;
|
||||
// 核心标识和配置
|
||||
s_uuid:number = 0;
|
||||
@@ -193,9 +193,7 @@ export class AtkConCom extends CCComp {
|
||||
this.is_destroy=true
|
||||
}
|
||||
}
|
||||
|
||||
//直线移动
|
||||
// if(this.skillConfig.AType == AType.linear) this.startLinearMove(deltaTime);
|
||||
|
||||
this.toDestroy();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { _decorator, instantiate, Node, Prefab, v3, Vec3 } from "cc";
|
||||
import { _decorator, CCBoolean, CCInteger, instantiate, Node, Prefab, v3, Vec3 } from "cc";
|
||||
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
||||
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
|
||||
import { HeroViewComp } from "../hero/HeroViewComp";
|
||||
@@ -15,18 +15,18 @@ export class SkillViewCom extends CCComp {
|
||||
/** 视图层逻辑代码分离演示 */
|
||||
@property({ type: Prefab })
|
||||
atkPrefab: Prefab = null!
|
||||
@property({ type: Number })
|
||||
runType: number = 0;
|
||||
@property({ type: Boolean })
|
||||
@property
|
||||
hasReady: boolean = false;
|
||||
@property({ type: Number })
|
||||
ReadyTime: number = 0;
|
||||
@property({ type: Number })
|
||||
ready_y: number = 0;
|
||||
@property({ type: Number })
|
||||
atk_x: number = 0;
|
||||
@property({ type: Number })
|
||||
atk_y: number = 0;
|
||||
@property({ type: CCInteger })
|
||||
ReadyTime: number = 0
|
||||
@property({ type: CCInteger })
|
||||
runType: number = 0
|
||||
@property({ type: CCInteger })
|
||||
ready_y: number = 0
|
||||
@property({ type: CCInteger })
|
||||
atk_x: number = 0
|
||||
@property({ type: CCInteger })
|
||||
atk_y: number = 0
|
||||
|
||||
endTime: number = 0;
|
||||
readyFinish: boolean = false;
|
||||
@@ -174,8 +174,6 @@ export class SkillViewCom extends CCComp {
|
||||
console.log(`${this.cName}_[SkillViewCom] skille run type: fixedEnd`)
|
||||
atkNode.getComponent(AtkConCom).do_fixedEnd()
|
||||
}
|
||||
|
||||
|
||||
move(dt: number): void {
|
||||
// console.log(`${this.cName}_[SkillViewCom] move`)
|
||||
if(this.caster != null&&this.caster.node!=null) this.node.setPosition(this.caster.node.position.x,this.caster.node.position.y+this.ready_y)
|
||||
|
||||
Reference in New Issue
Block a user