private void OnTriggerExit(Collider other) { _dialogue.SetActive(false); _displayElement.alpha = 0; PlayerHubInputManager input = other.GetComponent <PlayerHubInputManager>(); if (input != null) { input.SetInteractingObject(null); } }
private void OnTriggerEnter(Collider other) { _dialogue.SetActive(true); _displayElement.gameObject.SetActive(true); _displayElement.alpha = 1; PlayerHubInputManager input = other.GetComponent <PlayerHubInputManager>(); if (input != null) { input.SetInteractingObject(gameObject); } }
private void Start() { _playerInput = FindObjectOfType <PlayerHubInputManager>(); _animator.GetComponent <Animator>(); Advance(); }