示例#1
0
 private void UpdateRightHat()
 {
     if (rightHat != null)
     {
         rightSprite.sprite = rightHat.GetHatSprite(playerIndex);
     }
 }
示例#2
0
 private void UpdateLeftHat()
 {
     if (leftHat != null)
     {
         leftSprite.sprite = leftHat.GetHatSprite(playerIndex);
     }
 }
示例#3
0
 private void UpdateCenterHat()
 {
     if (centerHat != null)
     {
         if (!centerHat.IsAvailable && centerHat.SelectedByPlayerIndex != playerIndex)
         {
             centerSprite.sprite = centerHat.GetHatSprite(playerIndex);
             hatTakenMessage.SetActive(true);
         }
         else
         {
             centerSprite.sprite = centerHat.GetHatSprite(playerIndex);
             hatTakenMessage.SetActive(false);
         }
     }
 }