public static void ShowMenu(this Player player, IMenu menu) { MenuInfo menuInfo = menu.GetMenuInfo(player); dict[player] = new MenuTime(menu, DateTime.Now, TimeSpan.FromSeconds(menuInfo.displayTime)); player.ShowMenu(menuInfo.keys, menuInfo.displayTime, menuInfo.text); }
public static void ShowMenu(this Player player, IMenu menu, byte displayTime) { MenuInfo menuInfo = menu.GetMenuInfo(player); menuInfo.displayTime = displayTime; dict[player] = new MenuTime(menu, DateTime.Now, TimeSpan.FromSeconds(menuInfo.displayTime)); player.ShowMenu(menuInfo.keys, menuInfo.displayTime, menuInfo.text); }