Exemple #1
0
    private void Awake()
    {
        interactable = GetComponent <KeyCardReader>();

        if (!groundhogDay)
        {
            groundhogDay = FindObjectOfType <GroundhogDay>();
        }
        Debug.Assert(groundhogDay, "groundhogDay is null", this);

        interactable.interactEventComponent.onInteract.AddListener(OnInteract);
    }
Exemple #2
0
    private void Awake()
    {
        interactable = GetComponent <KeyCardReader>();

        interactable.interactEventComponent.onInteract.AddListener(OnInteract);
    }