public virtual void ApplyToRenderer( ReanimatorState previousState, ReanimatorState nextState, SpriteRenderer renderer ) { nextState.Merge(drivers); renderer.sprite = sprite; renderer.flipX = previousState.ShouldFlip(); }
public void ApplyToRenderer( ReanimatorState previousState, ReanimatorState nextState, SpriteRenderer renderer ) { nextState.Merge(drivers); renderer.sprite = previousState.ShouldFlip() ? spriteLeft : sprite; renderer.flipX = false; }