AirtestProject / AirtestProject/Poco

使用poco.click()点击以后 poco调用的rpc协议不生效

Offen
#463 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
2k
Forks
341
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**描述问题bug**
游戏里面有一个想调用一个更换天气的rpc协议
如果在poco.agent.rpc.call前使用了poco.click() 则只会更换天气特效(例如飘雪,下雨) 不会更换天气场景(例如晴天,夜晚)
```
poco代码:
poco.agent.rpc.call("weather", 18)

pocomanager.cs提供的接口
[RPC]
private object weather(List param)
{
int id=Int32.Parse(param[0].ToString());
LuaState luaState = LuaClient.GetMainState ();
var func = luaState.GetFunction("WeatherController.setReportId");
var rpc = luaState.GetTable("WeatherController");
var instance = rpc["instance"];
func.Call(instance,id);
func.Dispose();
rpc.Dispose();
return true;
}
```

**复现步骤**
直接运行poco.agent.rpc.call("weather", b)

**预期效果**
天气和特效同时更换

**相关截图**
/

**python 版本:** `python3.6`

**poco 版本:** `1.0.82`

**设备:**
- 型号: unity2019.4.16f1
- 系统: PC

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.