public static void ShowCreepInfo(CreepInfoType type, string arg, CreepHelper.CreepDeathData source = null) { string text = string.Empty; switch (type) { case CreepInfoType.creep_awake: if (arg != null) { SysPromptVo dataById = BaseDataMgr.instance.GetDataById <SysPromptVo>("150"); text = string.Format(LanguageManager.Instance.GetStringById(dataById.prompt_text), arg); if (dataById != null) { CreepHelper.CreepAwakeParam item = new CreepHelper.CreepAwakeParam(text, dataById.text_time, 629); CreepHelper._waittingQueue.Enqueue(item); if (CreepHelper.curTask == null) { CreepHelper.curTask = new Task(CreepHelper.DelayBrocast(), true); } } } break; case CreepInfoType.creep_killed: if (source != null && source.Attacker != null && source.Creep != null) { int num = (source.Attacker.teamType != 0) ? 151 : 152; SysPromptVo dataById = BaseDataMgr.instance.GetDataById <SysPromptVo>(num.ToString()); string stringById = LanguageManager.Instance.GetStringById(dataById.prompt_text); EntityType attackerType; if (source.Attacker.isBuilding) { attackerType = EntityType.Tower; } else if (source.Attacker.isMonster) { attackerType = EntityType.Monster; } else { attackerType = EntityType.Hero; } string sound = dataById.sound2; string promptId = PromptHelper.CreepKilledId(source.Attacker); UIMessageBox.ShowKillPrompt(promptId, "[]", source.Attacker.npc_id, attackerType, EntityType.Creep, string.Empty, string.Empty, TeamType.None, TeamType.None); } break; } }