mirror of
https://github.com/kirikayakazuto/CocosCreator_ECS
synced 2025-10-30 19:05:52 +00:00
update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user