private void RPCHandleClientFx(NetworkUser arg1, ClientFxContainer arg2) { try { StartCoroutine(RPCPlayFx(Assets.MainAssetBundle.LoadAsset <GameObject>(arg2.prefabName), arg2.position, arg2.rotation, arg2.emissionLife, arg2.destroyLife)); } catch (Exception ex) { } // not very important if this fails }
private void RPCHandleServerToClientFx(NetworkUser arg1, ClientFxContainer arg2) { foreach (var user in NetworkUser.readOnlyInstancesList) { try { NetRequestSpawnFx.Invoke(arg2, user); } catch (Exception ex) { } // not important if this fails } }