public static void AddBuff(WorldBase world, EntityBase skiller, EntityBase hurter, string[] hurtBuff) { if (!hurter.GetExistComp <PlayerComponent>()) { return; } PlayerComponent pc = hurter.GetComp <PlayerComponent>(); for (int i = 0; i < hurtBuff.Length; i++) { //Debug.Log(" AddBuff " + skiller.ID); BuffInfo bi = pc.AddBuff(hurtBuff[i], skiller.ID); world.eventSystem.DispatchEvent(GameUtils.c_addBuff, hurter, bi); } }