-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clean up card instantiation (hackily - transform parent dancing)
- Loading branch information
Showing
5 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Collections; | ||
using UnityEngine; | ||
|
||
namespace Crysc.Helpers | ||
{ | ||
public static class CoroutineRandomDelayExtensions | ||
{ | ||
public static IEnumerator WithRandomDelay(this IEnumerator enumerator, float maxDelay) | ||
{ | ||
yield return new WaitForSeconds(Random.Range(minInclusive: 0f, maxInclusive: maxDelay)); | ||
yield return enumerator; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
|
||
namespace Crysc.Presentation.Arrangements | ||
{ | ||
public class ArrangementEventArgs : EventArgs | ||
{ | ||
public ElementMovementPlan Plan { get; } | ||
public ArrangementEventArgs(ElementMovementPlan plan) { Plan = plan; } | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Runtime/Presentation/Arrangements/ArrangementEventArgs.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.