using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ShieldButton : MonoBehaviour {

    public GameObject window;

    public AudioClip activationAudio;

    public void OnClick()
    {
        GameObject.FindGameObjectWithTag("Player").GetComponent<Player>().Invul(4);

        GameObject.FindGameObjectWithTag("GameController").GetComponent<AudioManager>().Play(activationAudio, Vector3.zero);

        GameObject.Destroy(window);
    }
}
