21 lines
453 B
C#
21 lines
453 B
C#
namespace ET
|
|
{
|
|
// 可以用来管理多个客户端场景,比如大世界会加载多块场景
|
|
[ComponentOf(typeof(Scene))]
|
|
public class CurrentScenesComponent: Entity, IAwake
|
|
{
|
|
private EntityRef<Scene> scene;
|
|
|
|
public Scene Scene
|
|
{
|
|
get
|
|
{
|
|
return this.scene;
|
|
}
|
|
set
|
|
{
|
|
this.scene = value;
|
|
}
|
|
}
|
|
}
|
|
} |