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