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