private void UpdateRightHat() { if (rightHat != null) { rightSprite.sprite = rightHat.GetHatSprite(playerIndex); } }
private void UpdateLeftHat() { if (leftHat != null) { leftSprite.sprite = leftHat.GetHatSprite(playerIndex); } }
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); } } }