I want to create a new countdown timer every time an if
statement is true
, it should work like this:
Eg:
List<int> intList = new List<int>();
foreach(a in b)
{
if(a==1)
{
intList.Add(a.somevalue)
//should create a new countdown timer for 1 hour and once the time is finished, it
should remove the added value from the list
}
}
How do i achieve this ??
Thanks.