Maakt een key aan het einde van de Clock minigame

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
 
public class SpawnKey : MonoBehaviour
{
    // Start is called before the first frame update
    [SerializeField]
    private GameObject key;
 
    [SerializeField]
    private GameObject spawnPoint;
 
    public void spawnKey()
    {
        Instantiate(key, spawnPoint.transform.position, Quaternion.identity);
    }
}