This file contains hidden or 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
internal abstract class Program | |
{ | |
private static readonly string[] Ids = | |
{ | |
"nm0636046", "nm0000228", "tt2310332", "tt0113986", "tt0111191", "tt0117705", "tt0120735", "tt0107616", | |
"tt2058673", "tt0167261", "tt0167404", "tt0069280", "tt0151804", "nm0000142", "tt7829914", "tt5446858", | |
"tt3748528", "tt5164214", "tt0100122", "tt0088611", "tt0488085", "tt5149528", "tt0416320", "tt0400435", | |
"tt0091635", "tt3460252" | |
}; |
This file contains hidden or 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
AnimatorStateInfo animationState = myAnimator.GetCurrentAnimatorStateInfo(0); | |
AnimatorClipInfo[] animatorClipInfoArray = myAnimator.GetCurrentAnimatorClipInfo(0); | |
if (animatorClipInfoArray.Length > 0) | |
{ | |
float clipLength = animatorClipInfoArray[0].clip.length; | |
float timePlayed = clipLength * animationState.normalizedTime; | |
float timeToDelay = clipLength - timePlayed; | |
yield return new WaitForSeconds(timeToDelay); | |
} |