Added new Game logic library to assist with game projects
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
|
||||
namespace OmegaLeo.HelperLib.Game.Models
|
||||
{
|
||||
internal class DelayedAction
|
||||
{
|
||||
public float TimeRemaining { get; set; }
|
||||
public float InitialDelay { get; }
|
||||
public Action Action { get; }
|
||||
public bool IsRepeating { get; }
|
||||
public bool IsCancelled { get; set; }
|
||||
|
||||
public DelayedAction(float delay, Action action, bool isRepeating)
|
||||
{
|
||||
TimeRemaining = delay;
|
||||
InitialDelay = delay;
|
||||
Action = action;
|
||||
IsRepeating = isRepeating;
|
||||
IsCancelled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user