mirror of
https://github.com/kirikayakazuto/CocosCreator_ECS
synced 2025-01-01 06:28:38 +00:00
12 lines
296 B
TypeScript
12 lines
296 B
TypeScript
|
import { ComType } from "../lib/Const";
|
||
|
import { ECSComponent } from "../lib/ECSComponent";
|
||
|
|
||
|
@ECSComponent(ComType.ComMovable)
|
||
|
export class ComMovable {
|
||
|
public running = false;
|
||
|
public speed = 0;
|
||
|
public points: cc.Vec2[] = [];
|
||
|
public pointIdx = 0;
|
||
|
|
||
|
public speedDirty = false;
|
||
|
}
|