private void OnTriggerEnter2D(Collider2D other) { Logger.Log("Trigger", "Player->OnTriggerEnter2D"); interactableEntity = other.GetComponent <Entity>(); if (interactableEntity is null) { Logger.Warning("didnt find interactableEntity, some entity either not interactable either something went wrong"); return; } _interactableTag = other.tag; #if UNITY_EDITOR interactableEntity?.Highlight(); #endif }
public void OnTalkingEnded() { Logger.Warning("[DialogueCanvas] OnTalkingEnded()"); dialogueImage.gameObject.SetActive(false); }
public void OnTalkingStarted() { Logger.Warning("[DialogueCanvas] OnTalkingStarted()"); dialogueImage.gameObject.SetActive(true); }