Color fixes. Draw.Circle. JSON.Enum. OnCollide leak fix

This commit is contained in:
Matt Thorson
2020-05-31 17:26:50 -07:00
parent 53ab0a7910
commit afabb58543
6 changed files with 50 additions and 3 deletions

View File

@ -12,6 +12,11 @@ namespace Strawberry
Action = action;
}
public ~this()
{
delete Action;
}
public override void Started()
{

View File

@ -16,6 +16,13 @@ namespace Strawberry
}
public this(Action onComplete, bool destroyOnComplete = false)
: base(false, false)
{
OnComplete = onComplete;
RemoveOnComplete = destroyOnComplete;
}
public this(float value, Action onComplete, bool destroyOnComplete = false)
: base(false, false)
{