mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2026-10-19 13:59:23 +08:00
Replaced SDLApp code in Game, no longer extends it
This commit is contained in:
1 parent
12c10909c9
commit
0a709b5788
8 files changed
+142
-35
No files matched your search
@@ -8,7 +8,7 @@ namespace Strawberry
|
||||
private float value;
|
||||
|
||||
public Action OnComplete ~ delete _;
|
||||
public bool DestroyOnComplete;
|
||||
public bool RemoveOnComplete;
|
||||
|
||||
public this()
|
||||
: base(false, false)
|
||||
@@ -21,7 +21,7 @@ namespace Strawberry
|
||||
{
|
||||
Value = value;
|
||||
OnComplete = onComplete;
|
||||
DestroyOnComplete = destroyOnComplete;
|
||||
RemoveOnComplete = destroyOnComplete;
|
||||
}
|
||||
|
||||
public float Value
|
||||
@@ -49,7 +49,7 @@ namespace Strawberry
|
||||
Active = false;
|
||||
|
||||
OnComplete?.Invoke();
|
||||
if (DestroyOnComplete)
|
||||
if (RemoveOnComplete)
|
||||
RemoveSelf();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user