mirror of
https://github.com/kirikayakazuto/CocosCreator_ECS
synced 2024-12-27 12:08:43 +00:00
12 lines
323 B
TypeScript
Executable File
12 lines
323 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;
|
|
} |