Poco icon indicating copy to clipboard operation
Poco copied to clipboard

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

Open WINGSIGOD opened this issue 3 years ago • 0 comments

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

poco代码:
poco.agent.rpc.call("weather", 18)

pocomanager.cs提供的接口
[RPC]
private object weather(List<object> 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

WINGSIGOD avatar Jun 09 '21 06:06 WINGSIGOD