移除过时类并标记组件和实体的update为过时方法
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* 可更新接口
|
||||
* 当添加到组件时,只要组件和实体被启用,就会在每帧调用update方法
|
||||
* @deprecated 不符合ECS架构规范,建议使用EntitySystem来处理更新逻辑而非在组件中实现
|
||||
*/
|
||||
export interface IUpdatable {
|
||||
enabled: boolean;
|
||||
|
||||
@@ -49,6 +49,7 @@ export class SceneComponent {
|
||||
|
||||
/**
|
||||
* 每帧更新
|
||||
* @deprecated 不符合ECS架构规范,建议使用EntitySystem来处理场景级更新逻辑
|
||||
*/
|
||||
public update(): void {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user