Last active
January 25, 2021 18:00
-
-
Save mooman219/775fc4ec3c05a0ab8323c9b494eec036 to your computer and use it in GitHub Desktop.
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
GlobalAnimator.animate(SimpleAnimationInstance, new_value => { | |
textReveal.minCharacters = new_value; | |
}) | |
Pseudo code: | |
GlobalAnimator Animate(SimpleAnimation, lambda) { | |
Store the (SimpleAnimation, lambda) pair. | |
} | |
GlobalAnimator Update() { | |
Iterate over all (SimpleAnimation, lambda) pairs | |
For each, run the lambda with lambda(SimpleAnimation.value) | |
Remove the pair when SimpleAnimation ends | |
} | |
C# is lame, just do this | |
for (int i = list.Count - 1; i >= 0; i--) | |
{ | |
list.RemoveAt(i); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
E