using UnityEngine; using UnityEngine.UI; namespace Google.Maps.Examples.Shared { /// /// Script for hiding this at the press of the required /// . /// [RequireComponent(typeof(Button))] public sealed class InstructionsButton : MonoBehaviour { [Tooltip( "Optional Slider to extend upwards to fill the empty space left by this Button when it " + "is hidden.")] public Slider Slider; /// /// Connect press to hiding of this . /// private void Start() { // Get required Button, and connect to hiding of this GameObject (and optionally extending // given Slider). Button button = GetComponent