AirtestProject / AirtestProject/Poco

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

Abierto
#463 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
2k
Forks
341
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**描述问题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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.