private void UseItemClient(int idPlayer, int itemID) { Player player = TurnDirector.Ins.GetPlayer(idPlayer); BaseItem item = player.playerItem.Find(x => x.Id == itemID); if (item == null) { Debug.LogError("player dont have item to active"); return; } if (!player.MinePlayer) { item.AnimationEffect(); } item.Activate(""); }