So I have multiple errors across multiple lines of this and similar:
var currentNormalizedTime : float = adventurer.animation[currentAnimationName].normalizedTime - Mathf.Floor(adventurer.animation[currentAnimationName].normalizedTime);
I tried replacing adventurer.animation[currentAnimationName] with
adventurer.GetComponent()[currentAnimationName] as reccomended by another thread on the subject, but that just throws a bunch of syntax errors.
I very much prefer C#, I'm totally lost in js... What am I doing wrong?
↧