技能设置清理
This commit is contained in:
@@ -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