increase room diversity, improve ui
This commit is contained in:
@@ -33,6 +33,16 @@ namespace EscapeRoomEngine.Engine.Runtime.Utilities
|
||||
|
||||
public static class ListExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// remove the first element from a list and return it.
|
||||
/// </summary>
|
||||
public static T Pop<T>(this List<T> list)
|
||||
{
|
||||
var element = list[0];
|
||||
list.RemoveAt(0);
|
||||
return element;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// remove a random element from a list and return it.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user