using System.Collections; using System.Collections.Generic; using UnityEngine; using InfallibleCode; public class ChangeKeyForKeyHole : MonoBehaviour { public KeyHole targetKeyHole; public KeyPickup newkeyPickup; public void ChangeKeyInTargetKeyHole() { targetKeyHole.KeyPickup = newkeyPickup; } }