Polis.Core.Core (Packages/PolisCore/Core), network variant in Polis.Core.Networking.<aside> 💡
For things that are not global, prefer plain references (serialized fields) or Dependency Injection instead!
</aside>
AppCore is the root singleton MonoBehaviour in RootScene (execution order -1000). Only one instance, a second one destroys itself.AppCore.Instance - logs an error when accessed in play mode before the core exists.AppCore.HasInstance - true only in play mode with a live core.AppCore.Services - the service provider. When there is no core (edit mode, app quitting) it returns MockServiceProvider, which ignores calls and logs a message.AppCore.IsLoaded / AppCore.AwaitLoaded() - true / completes after the App Loader finished. See App LoaderAppCore.Instance.RootScene - the scene where loaded managers live.AppCore.CurrentVersion - AppVersion from the AppVersionDefinition settings asset, see App settings below.AppCore.IsMainThread - main thread check.IService can be registered within AppCore.Services (IServiceProvider).T used when registering. Get it with the same type. Getting it by a base type returns null and logs an error naming the right type, the same in editor and builds.