fixed time
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user