public void SetInterval(float interval) {
public bool Attempt (float currentTime) {
public static void Main()
Console.WriteLine("Cooldown Test Suite");
Cooldown c = new Cooldown();
Console.WriteLine("Setting cooldown interval to 10");
Console.WriteLine("\nAttempting action at time 1, should succeed");
Console.WriteLine("Success " + c.Attempt(1));
Console.WriteLine("\nAttempting action at time 2, should fail");
Console.WriteLine("Success " + c.Attempt(2));
Console.WriteLine("\nAttempting action at time 4, should fail");
Console.WriteLine("Success " + c.Attempt(4));
Console.WriteLine("\nAttempting action at time 10, should fail");
Console.WriteLine("Success " + c.Attempt(5));
Console.WriteLine("\nAttempting action at time 11, should succeed");
Console.WriteLine("Success " + c.Attempt(11));
Console.WriteLine("\nAttempting action at time 25, should succeed");
Console.WriteLine("Success " + c.Attempt(25));
Console.WriteLine("\nAttempting action at time 23 (back in time, mysteriously), should fail");
Console.WriteLine("Success " + c.Attempt(23));