feat(skill): add force spawn position setting for skills
add forceStartX and forceStartY properties to control skill spawn position directly use world coordinates when the values are >=0, otherwise use original offset logic
This commit is contained in:
@@ -42,6 +42,14 @@ export class SkillView extends CCComp {
|
||||
@property({ type: CCFloat, slide: true, range: [0, 2000, 10], tooltip: "直线飞行距离(仅 linear 生效)" })
|
||||
distance: number = 0;
|
||||
|
||||
/** 强制出生点世界坐标X(-1=不强制,使用 atk_x 偏移;>=0 时强制使用该值,如 0=屏幕中心) */
|
||||
@property({ type: CCFloat, tooltip: "强制出生点X:-1=不强制,>=0=强制世界坐标X" })
|
||||
forceStartX: number = -1;
|
||||
|
||||
/** 强制出生点世界坐标Y(-1=不强制,使用 atk_y 偏移;>=0 时强制使用该值) */
|
||||
@property({ type: CCFloat, tooltip: "强制出生点Y:-1=不强制,>=0=强制世界坐标Y" })
|
||||
forceStartY: number = -1;
|
||||
|
||||
private debugMode: boolean = false;
|
||||
|
||||
anim: Animation = null;
|
||||
|
||||
Reference in New Issue
Block a user