// Start is called before the first frame update void Start() { _clubNotFound = true; _eventManager = EventManager.Instance != null ? EventManager.Instance : FindObjectOfType <EventManager>(); if (_eventManager == null) { Debug.Log("Event Manager is null"); } _eToInteract = GetComponentInChildren <EtoInteract>(); if (_eToInteract == null) { Debug.Log("Player Canvas is NULL"); } _dt = GetComponent <DialogTrigger>(); if (_dt == null) { Debug.Log("Dialog Trigger is NULL"); } _dt.SetActiveOnEnterFalse(); _eventManager.ClubFound += StartHintDialog; }
// Update is called once per frame void Update() { Movement(); if (_dt.activeOnEnter) { _dt.SetActiveOnEnterFalse(); } }
private void Update() { if (Input.GetKeyDown(KeyCode.E) && _eToInteractActive) { _eToInteractActive = false; _eToInteract.EtoInteractIsActive(_eToInteractActive); _clubNotFound = false; } if (_dt.activeOnEnter) { _dt.SetActiveOnEnterFalse(); } }
// Update is called once per frame void Update() { if (_dt.activeOnEnter) { _dt.SetActiveOnEnterFalse(); } if (_inOnTrigger) { if (Input.GetKeyDown(KeyCode.E) && _initialDialog) { _dt.TriggerDialog(); _eKey.EtoInteractIsActive(false); _initialDialog = false; } } }