1.重名所有App级模块为Service 2.移除Module中心 移除SingletonManager 3.引入Service Scope Context概念 避免上下文Manager到处引用 4.修复部分bug
15 lines
333 B
C#
15 lines
333 B
C#
using UnityEngine;
|
|
|
|
namespace AlicizaX
|
|
{
|
|
[DisallowMultipleComponent]
|
|
[AddComponentMenu("Game Framework/Procedure")]
|
|
public sealed class ProcedureComponent : MonoBehaviour
|
|
{
|
|
private void Awake()
|
|
{
|
|
AppServices.GetOrCreateScope<AppScope>().Register(new ProcedureService());
|
|
}
|
|
}
|
|
}
|