This commit is contained in:
honmono
2022-03-22 15:35:41 +08:00
parent 91e741a895
commit c7d30bc03b
16 changed files with 531 additions and 125 deletions

View File

@@ -4,7 +4,8 @@ export enum EventType {
Attack,
Hurt,
HPChange,
Death
Death,
GraphicsDraw,
}
export class EventBase {
@@ -56,4 +57,14 @@ export class EventHPChange extends EventBase {
this.lastHP = lastHP;
this.nowHP = nowHP;
}
}
export class EventGraphicsDraw extends EventBase {
public points: cc.Vec2[];
public color: cc.Color;
constructor(points: cc.Vec2[], color?: cc.Color) {
super(EventType.GraphicsDraw)
this.points = points;
this.color = color;
}
}