コード例 #1
0
        public void Interact(PlayerController interactor)
        {
            if (TextBoxManager.HasTextBox(this.talkPoint))
            {
                return;
            }

            Tools.Print("Can use: " + (CanUse == null));
            m_canUse = CanUse != null?CanUse.Invoke(interactor, this.gameObject) : m_canUse;

            StartCoroutine(this.HandleConversation(interactor));
        }
コード例 #2
0
        public void Interact(PlayerController interactor)
        {
            if (TextBoxManager.HasTextBox(this.talkPoint))
            {
                return;
            }

            m_canUse = CanUse != null?CanUse.Invoke(interactor, this.gameObject) : m_canUse;

            if (!m_canUse)
            {
                TextBoxManager.ShowTextBox(this.talkPoint.position, this.talkPoint, 2f, "No takesies backsies!", interactor.characterAudioSpeechTag, instant: false);
                base.spriteAnimator.PlayForDuration("talk", 2f, "idle");
            }
            else
            {
                StartCoroutine(this.HandleConversation(interactor));
            }
        }