Exemplo n.º 1
0
 /// <summary>
 /// Based on the type of state info pass it through to the sprite renderer
 /// </summary>
 /// <param name="stateDatum"></param>
 private void SetCursorState(SpriteCursorDatum stateDatum)
 {
     // Return if we do not have an animator
     if (TargetRenderer != null)
     {
         TargetRenderer.sprite = stateDatum.CursorSprite;
         TargetRenderer.color  = stateDatum.CursorColor;
     }
 }
 /// <summary>
 /// Based on the type of state info pass it through to the sprite renderer
 /// </summary>
 /// <param name="stateDatum"></param>
 private void SetCursorState(SpriteCursorDatum stateDatum)
 {
     // Return if we do not have an animator
     if (TargetRenderer != null)
     {
         TargetRenderer.sprite = stateDatum.CursorSprite;
         TargetRenderer.color = stateDatum.CursorColor;
     }
 }