void Awake() { _camera = Camera.main; lister = GetComponent <ControlPromptLister>(); player = GameObject.FindGameObjectWithTag("Player"); interaction = player?.GetComponent <PlayerInteraction>(); interaction.OnInteracted += OnInteracted; interaction.OnDisinteracted += () => lister.SetActiveAll(false); }
void Start() { lister.SetActiveAll(false); }