/**
  * <summary>Gets the intended scale factor of the GameObject, based on its position on the scene's SortingMap.</summary>
  * <returns>The intended scale factor.  If 0, then the Char script will not make use of it.</returns>
  */
 public float GetLocalScale()
 {
     if (sortingMap != null && sortingMap.affectScale)
     {
         return(sortingMap.GetScale(transform.position) / 100f);
     }
     return(0f);
 }