private void Awake() { interactable = GetComponent <KeyCardReader>(); if (!groundhogDay) { groundhogDay = FindObjectOfType <GroundhogDay>(); } Debug.Assert(groundhogDay, "groundhogDay is null", this); interactable.interactEventComponent.onInteract.AddListener(OnInteract); }
private void Awake() { interactable = GetComponent <KeyCardReader>(); interactable.interactEventComponent.onInteract.AddListener(OnInteract); }