mirror of
https://github.com/kirikayakazuto/CocosCreator_ECS
synced 2024-12-28 20:48:43 +00:00
14 lines
325 B
TypeScript
Executable File
14 lines
325 B
TypeScript
Executable File
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 keepDir = false;
|
|
|
|
public speedDirty = false;
|
|
} |