void UpdateSortingOrder(SpriteRenderer renderer, ESortingOrder order) { if (renderer != null) { renderer.sortingOrder = (int)order; } }
void UpdateSortingOrder(GameObject player, ESortingOrder order) { UpdateSortingOrder(m_PlayerSpriteRendererList[player.CompareTag(Player.Player1) ? 0 : 1], order); }
void UpdateSortingOrder(EPlayer player, ESortingOrder order) { UpdateSortingOrder(m_PlayerSpriteRendererList[(int)player], order); }