Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (other.gameObject.tag == "RingsPowerUpCollected")
- {
- _audioSource.PlayOneShot(_powerUpClip, _volumeMin);
- _ringsIconCounter++;
- _ringsIconCounter = Mathf.Clamp(_ringsIconCounter, 0, 3);
- switch (_ringsIconCounter)
- {
- case 1:
- _ringsActiveIcon1.SetActive(true);
- break;
- case 2:
- _ringsActiveIcon2.SetActive(true);
- break;
- case 3:
- _ringsActiveIcon3.SetActive(true);
- break;
- default:
- Debug.Log("Its okay");
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement