fixed time

This commit is contained in:
2024-04-07 00:12:15 +02:00
parent d5102b868d
commit 731c08bb97
4 changed files with 52 additions and 6 deletions

View File

@ -216,4 +216,22 @@ public partial class GameManager : MonoBehaviourSingleton<GameManager>
{
_contextBuffer.Add(context);
}
/// <summary>
/// Removes the given string from the context
/// </summary>
/// <param name="context"></param>
public void RemoveContext(string context)
{
if ( _contextBuffer.Contains(context) )
{
List<string> contextAsList = _contextBuffer.ToArray().ToList();
_contextBuffer.Clear();
contextAsList.Remove(context);
foreach (var c in contextAsList)
{
_contextBuffer.Add(c);
}
}
}
}