//------------------------------------------------------------------------- public void s2allcCreateClientEffect( uint et_player_rpcid, int bullet_rate, EbVector3 position, int fish_id, int effect_id, string effect_name, int effect_type, float effect_delay_time, List <string> custom_param_list) { Dictionary <string, object> map_param = new Dictionary <string, object>(); map_param.Add("PlayerId", et_player_rpcid); map_param.Add("Rate", bullet_rate); map_param.Add("FishId", fish_id); map_param.Add("EffectCustomParam", custom_param_list); // 根据死亡鱼的id查位置,查不到就用服务器的位置 CRenderFish fish = (CRenderFish)mBaseFishLordMgr.findBaseEntity(fish_id); if (fish != null) { map_param.Add("SourcePosition", fish.Position); } else { map_param.Add("SourcePosition", position); } mScene.addSingleEffect(effect_id, effect_name, effect_type, effect_delay_time, map_param, EffectTypeEnum.Server2Client); }