Installtion
修改Packages目录下的manifest.json文件,增加scopedRegistries节(如果没有的话),然后增加以下仓库配置:
"scopedRegistries": [
{
"name": "npmjs",
"url": "https://registry.npmjs.org",
"scopes": [
"com.onesignal",
"com.modesttree.zenject",
"com.applovin.max.unity",
"com.mogafa",
"com.didabu",
"com.bugly.unity",
"com.facebook.unity"
]
}
]
在dependencies下添加:
开发环境(Github)
"com.mogafa.csharp.common.unity": "ssh://git@github.com/mogafa/csharp-common.git#upm_dev",
开发环境(aliyun)
"com.mogafa.csharp.common": "ssh://git@code.aliyun.com/mogafa/csharp-common.git#upm_dev",
正式环境
"com.mogafa.csharp.common.unity": "0.2.0",