组件注册与添加
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { Component } from '@esengine/ecs-framework';
|
||||
|
||||
export class SpriteComponent extends Component {
|
||||
public texture: string = '';
|
||||
public width: number = 100;
|
||||
public height: number = 100;
|
||||
public alpha: number = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user