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