Skip to content

6.6.14

Compare
Choose a tag to compare
@yomunsam yomunsam released this 07 Oct 01:00
· 21 commits to master since this release

6.6.14

【DI(依赖注入)】单例注册已生成的实例 | Singleton registration of generated instances


Usage:

public class A {}
var objA = new A();
XCore.GetMainInstance().Services.Instance<A>(objA);

If you use this feature in ilruntime, you need to TinaX.ILRuntime Package upgrade to version 6.6.3



Install

Install via git UPM

git://github.com/yomunsam/TinaX.Core.git#6.6.14

Install via OpenUPM

openupm add io.nekonya.tinax.core

Install via npm (UPM)

Modify Packages/manifest.json file in your project, and add the following code before "dependencies" node of this file:

"scopedRegistries": [
    {
        "name": "TinaX",
        "url": "https://registry.npmjs.org",
        "scopes": [
            "io.nekonya"
        ]
    },
    {
        "name": "package.openupm.com",
        "url": "https://package.openupm.com",
        "scopes": [
            "com.cysharp.unitask",
            "com.neuecc.unirx"
        ]
    }
],