提交 b322dae8 编写于 作者: T tanghai

DBProxyComponent忘了添加ObjectEvent辅助类

上级 dacd6b93
......@@ -3,11 +3,11 @@
namespace Model
{
[ObjectEvent]
public class DBComponentEvent : ObjectEvent<DBComponent>, IStart
public class DBComponentEvent : ObjectEvent<DBComponent>, IAwake
{
public void Start()
public void Awake()
{
this.Get().Start();
this.Get().Awake();
}
}
......@@ -19,7 +19,7 @@ namespace Model
public MongoClient mongoClient;
public IMongoDatabase database;
public void Start()
public void Awake()
{
//DBConfig config = Game.Scene.GetComponent<StartConfigComponent>().StartConfig.GetComponent<DBConfig>();
//string connectionString = config.ConnectionString;
......
......@@ -4,6 +4,15 @@ using System.Threading.Tasks;
namespace Model
{
[ObjectEvent]
public class DBProxyComponentEvent : ObjectEvent<DBProxyComponent>, IAwake
{
public void Awake()
{
this.Get().Awake();
}
}
/// <summary>
/// 用来与数据库操作代理
/// </summary>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册