Comparing version 1.0.5 to 1.0.6
@@ -51,3 +51,3 @@ | ||
unityInstance.parentNode = parentNode; | ||
AB3D.interface = new Interface(unityInstance, db, param.succeed); | ||
AB3D.interface = new Interface(unityInstance, db,param.host, param.succeed); | ||
unityInstance.Invoke = function (prama, register) { | ||
@@ -99,3 +99,3 @@ if (register) { | ||
unityInstance.parentNode = parentNode; | ||
AB3D.interface = new Interface(unityInstance, db, param.succeed); | ||
AB3D.interface = new Interface(unityInstance, db, param.host, param.succeed); | ||
unityInstance.Invoke = function (prama, register) { | ||
@@ -145,3 +145,3 @@ if (register) { | ||
var db = new IndexDBCache(); | ||
AB3D.interface = new Interface(unityInstance, db, param.succeed); | ||
AB3D.interface = new Interface(unityInstance, db,param.host, param.succeed); | ||
unityInstance.Invoke = function (prama, register) { | ||
@@ -148,0 +148,0 @@ if (register) { |
@@ -20,3 +20,3 @@ import Load from "./Module/Load.js"; | ||
decorate;//装饰模块 | ||
constructor(unityInstance, db, callback) { | ||
constructor(unityInstance, db,host, callback) { | ||
let that = this; | ||
@@ -26,2 +26,6 @@ that.event = Event; | ||
that.decorate = new Decorate(unityInstance); | ||
var param = { | ||
host:host | ||
} | ||
unityInstance.SendMessage("Interface", "Init", JSON.stringify(param)) | ||
Event.addEvent(100001, (backstr) => { | ||
@@ -28,0 +32,0 @@ console.log(backstr); |
@@ -50,3 +50,3 @@ /** | ||
}] | ||
this.#unityInstance.Untie(re) | ||
this.#unityInstance.Register(re) | ||
} | ||
@@ -159,3 +159,14 @@ /** | ||
} | ||
/** | ||
* 改变控制器 | ||
*/ | ||
ChangingControl(mode) { | ||
var unityParam = { | ||
moduleName: "ElementModule", | ||
methodName: "ChangingControl", | ||
Parameter:mode | ||
} | ||
this.#unityInstance.Invoke(unityParam); | ||
} | ||
} | ||
export default Decorate; |
{ | ||
"name": "abengine", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "引入 npm i ABengine", | ||
@@ -5,0 +5,0 @@ "main": "ab3d.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26705
715