static bool CreateNewEffectPoolItem(string prefabName, System.Action call) { //Debug.LogWarning("2JW : <color=red>Commmons Effect</color> - " + prefabName); if (EffectLoads.ContainsKey(prefabName)) { EffectLoads[prefabName].Add(call); return(false); } EffectLoads.Add(prefabName, new List <System.Action>()); EffectLoads[prefabName].Add(call); GameObject oriEff = null; if (TempOriEffectsDic.ContainsKey(prefabName)) { oriEff = TempOriEffectsDic[prefabName]; } else { if (prefabName.Contains("pc_f")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PC/fighter/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("pc_d")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PC/doctor/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("pc_p")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PC/pojol/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("par_ameymona")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PARTNER/ameymona/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("par_chesaman")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PARTNER/chesaman/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("par_gyehyangdong")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PARTNER/gyehyangdong/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("par_haejeo")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PARTNER/haejeo/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("par_jaejee")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PARTNER/jaejee/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("par_jamhyehye")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PARTNER/jamhyehye/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("par_jeoyukyeong")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PARTNER/jeoyukyeong/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("par_jopunghwa")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PARTNER/jopunghwa/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("par_kweegakchil")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PARTNER/kweegakchil/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("par_limso")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PARTNER/limso/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("par_luyeongbok")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PARTNER/luyeongbok/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("par_mak")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PARTNER/mak_gyeran/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("par_ryangkwan")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PARTNER/ryangkwan/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("par_ryuhwasang")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PARTNER/ryuhwasang/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("par_sobukwee")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PARTNER/sobukwee/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("par_wongihong")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PARTNER/wongihong/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("par_wongkeiying")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PARTNER/wongkeiying/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("par_yoodamuk")) { oriEff = ResourceMgr.Load(string.Format("Effect/_PARTNER/yoodamuk/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_fightboss")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_fightboss_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_raid")) { oriEff = ResourceMgr.Load(string.Format("Effect/_RAID/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_dongkwan_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_dongkwan_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_firefght_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_b_firefght_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_bully_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_bully_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_fightboss_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_b_fightboss_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("b_ninjaboss")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_ninjaboss_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_chesaman_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_chesaman_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_toga_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_toga_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_dakeda_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_dakeda_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_staggered_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_staggered_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_staggered_02")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_staggered_02/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_henchmanmaster_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_henchmanmaster/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_henchman_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_henchman_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_jpsoldier_02")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_jpsoldier_02/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_hyehye_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_hyehye_01/{0}", prefabName)) as GameObject; } //else if (prefabName.Contains("m_b_dakeda_01"))//위에 동일한거 있음 주석 //{ // oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_dakeda_01/{0}", prefabName)) as GameObject; //} else if (prefabName.Contains("m_b_goblinboss_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_goblinboss_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_ohwa_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_ohwa_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_sin_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_sin_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_hunter_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_hunter_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_fairy_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_fairy_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_merchant_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_merchant_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_admiral_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_admiral_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_admiral_02")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_admiral_02/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_admiral_03")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_admiral_03/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_admiral_04")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_admiral_04/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_admiral_05")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_admiral_05/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_admiral_06")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_admiral_06/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_admiral_07")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_admiral_07/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_faulty_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_faulty_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_faulty_02")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_faulty_02/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_faulty_03")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_faulty_03/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_faulty_04")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_faulty_04/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_faulty_05")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_faulty_05/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_faulty_06")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_faulty_06/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_faulty_07")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_faulty_07/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_france_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_france_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_france_02")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_france_02/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_france_03")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_france_03/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_france_04")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_france_04/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_france_05")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_france_05/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_france_06")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_france_06/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_henchman_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_henchman_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_henchman_02")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_henchman_02/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_henchman_03")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_henchman_03/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_henchman_04")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_henchman_04/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_henchman_05")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_henchman_05/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_henchman_06")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_henchman_06/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_henchman_07")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_henchman_07/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_henchman_08")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_henchman_08/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_henchman_09")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_henchman_09/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_jpsoldier_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_jpsoldier_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_jpsoldier_02")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_jpsoldier_02/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_jpsoldier_03")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_jpsoldier_03/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_jpsoldier_04")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_jpsoldier_04/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_jpspy_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_jpspy_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_jpspy_02")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_jpspy_02/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_jpspy_03")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_jpspy_03/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_jpspy_04")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_jpspy_04/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_jpspy_05")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_jpspy_05/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_jpspy_06")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_jpspy_06/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_jpspy_07")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_jpspy_07/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_jpspy_08")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_jpspy_08/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_jpspy_09")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_jpspy_09/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_military_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_military_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_military_02")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_military_02/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_military_03")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_military_03/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_military_04")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_military_04/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_military_05")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_military_05/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_ohwa_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_ohwa_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_ohwa_02")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_ohwa_02/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_ohwa_03")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_ohwa_03/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_ohwa_04")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_ohwa_04/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_pirate_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_pirate_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_pirate_02")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_pirate_02/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_pirate_03")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_pirate_03/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_pirate_04")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_pirate_04/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_pirate_05")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_pirate_05/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_pirate_06")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_pirate_06/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_pirate_07")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_pirate_07/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_staggered_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_staggered_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_staggered_02")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_staggered_02/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_staggered_03")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_staggered_03/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_staggered_04")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_staggered_04/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_staggered_05")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_staggered_05/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_merchant_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/merchant_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_merchant_02")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/merchant_02/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_merchant_03")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/merchant_03/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_merchant_04")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/merchant_04/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_fighter_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_fighter_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_guard_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_guard_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_wanderer_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_wanderer_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_wanderer_0")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_wanderer_0/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_rioter_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_rioter_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_robber_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_robber_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_thug_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_thug_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_devil_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_devil_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_actor_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_actor_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_toga_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_toga_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_toga_02")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_toga_02/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_toga_03")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_toga_03/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_toga_04")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_toga_04/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_toga_05")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_toga_05/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_toga_06")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_toga_06/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_toga_07")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_toga_07/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_thiefboss_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_thiefboss_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_escortboss_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_escortboss_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_terroristboss_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_terroristboss_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_b_policeboss_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_policeboss_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("b_guardboss_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_guardboss_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("b_firefight_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_firefight_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("b_pojolboss_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_pojolboss_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("b_rioterboss_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_rioterboss_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_devilman_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_devilman_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_devilman_02")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_devilman_02/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_devilman_03")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_devilman_03/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_devilman_04")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_devilman_04/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_goblin_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_goblin_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_dealer_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_dealer_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_pojol_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_pojol_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_fishman_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_fishman_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("m_escort_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/m_escort_01/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("b_wongkeiying_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/wongkeiying/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("b_ryuhwasang_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/ryuhwasang/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("b_jopunghwa_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/jopunghwa/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("b_jamhyehye_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/jamhyehye/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("b_jeoyukyeong_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/jeoyukyeong/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("b_jaejee_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/jaejee/{0}", prefabName)) as GameObject; } else if (prefabName.Contains("b_jpsoldier_01")) { oriEff = ResourceMgr.Load(string.Format("Effect/_NPC/b_jpsoldier_01/{0}", prefabName)) as GameObject; } else { oriEff = ResourceMgr.Load(string.Format("Effect/_Common/{0}", prefabName)) as GameObject; } if (oriEff != null) { GameObjectExtension.SetLayer(oriEff, LayerMask.NameToLayer("Focus"), true); //oriEff.layer = LayerMask.NameToLayer("Focus"); } if (oriEff == null) { Debug.LogWarning("2JW : not effect <color=red>Commmons Effect</color> - " + prefabName + " : " + oriEff, oriEff); EffectLoads[prefabName].Clear(); EffectLoads.Remove(prefabName); return(false); } //Debug.LogWarning("2JW : " + oriEff); TempOriEffectsDic.Add(prefabName, oriEff); } //AssetbundleLoader.GetEffect(prefabName, (obj) => { //Debug.LogWarning("2JW : " + _GameInfo); //Debug.LogWarning("2JW : " + _GameInfo.effectPool); CreatePoolItem(_GameInfo.effectPool, oriEff); for (int i = 0; i < EffectLoads[prefabName].Count; i++) { EffectLoads[prefabName][i](); } EffectLoads[prefabName].Clear(); EffectLoads.Remove(prefabName); }//, false); return(false); }