private IEnumerator InitRpc()
{
var connector = new CasinoConnector("192.168.7.57", 9030);
var conn = connector.ConnectAsync();
yield return conn;
DebugEx.Log(string.Format("IsConnected:{0}, Error:{1}, Exception:{2}", conn.IsConnected ,conn.Error, conn.Exception));
if (conn.IsConnected)
{
CasinoNetManager.Initialize(connector);
}
else
{
// 錯誤處理
}
}