示例#1
0
        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
        }
示例#2
0
        public void OnTalkingEnded()
        {
            Logger.Warning("[DialogueCanvas] OnTalkingEnded()");

            dialogueImage.gameObject.SetActive(false);
        }
示例#3
0
        public void OnTalkingStarted()
        {
            Logger.Warning("[DialogueCanvas] OnTalkingStarted()");

            dialogueImage.gameObject.SetActive(true);
        }