| | 1 | | using DCL; |
| | 2 | | using UnityEngine; |
| | 3 | |
|
| | 4 | | public class DisablePassportModifier : AvatarModifier |
| | 5 | | { |
| | 6 | |
|
| | 7 | | public override void ApplyModifier(GameObject avatar) |
| | 8 | | { |
| 0 | 9 | | AvatarShape avatarShape = avatar.GetComponent<AvatarShape>(); |
| 0 | 10 | | if (avatarShape != null) |
| | 11 | | { |
| 0 | 12 | | avatarShape.DisablePassport(); |
| | 13 | | } |
| 0 | 14 | | } |
| | 15 | |
|
| | 16 | | public override void RemoveModifier(GameObject avatar) |
| | 17 | | { |
| 0 | 18 | | AvatarShape avatarShape = avatar.GetComponent<AvatarShape>(); |
| 0 | 19 | | if (avatarShape != null) |
| | 20 | | { |
| 0 | 21 | | avatarShape.EnablePassport(); |
| | 22 | | } |
| 0 | 23 | | } |
| | 24 | | } |