// Update is called once per frame void Update() { if (isOnMarker && Input.GetButtonDown("Use")) { gameEvent.StartEvent(); GameObject player = GameObject.FindGameObjectWithTag("Player"); player.transform.position = transform.position; player.transform.eulerAngles = new Vector3(player.transform.eulerAngles.x, transform.eulerAngles.y, player.transform.eulerAngles.z); player.GetComponent <ShipController>().inactivityTime = 3f; global.countdown.SetActive(true); global.countdown.GetComponent <Countdown>().Reset(); isOnMarker = false; global.musicPlayer.GetComponent <MusicPlayer>().Play(eventMusic); gameObject.SetActive(false); eventInfo.SetActive(false); } }