TDE PauseTopDownDuringConversations Error

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ailurolatry
Posts: 2
Joined: Tue Feb 15, 2022 12:39 am

TDE PauseTopDownDuringConversations Error

Post by ailurolatry »

Hi!
I'm using Top Down Engine with the Dialogue System for a small project and while importing the third party support I got a few console errors relating to the PauseTopDownDuringConversations.cs script.
Image
Honestly I'm really confused - when looking through the TDE docs I saw that the character class does expand into condition.states etc. so I have no real idea how to fix it. I've been staring at both the console and the script itself for a while and I haven't been able to figure it out - I can't tell if it's something really simple staring me in the face or something else so I hope someone can help me.
Here's the script in question:
Image
Image
Thanks!
User avatar
Tony Li
Posts: 22152
Joined: Thu Jul 18, 2013 1:27 pm

Re: TDE PauseTopDownDuringConversations Error

Post by Tony Li »

Hi,

Does your project contain another script with a Character class? If so, put that class in a proper namespace instead of the global namespace. For example, instead of this:

Character.cs (not TDE's)

Code: Select all

// Misbehaving code:
using UnityEngine;
public class Character : MonoBehaviour
{
    ...
}
do something like this:

Character.cs (not TDE's)

Code: Select all

// Well-behaved code:
using UnityEngine;
namespace SomeNamespace
{
    public class Character : MonoBehaviour
    {
        ...
    }
}
ailurolatry
Posts: 2
Joined: Tue Feb 15, 2022 12:39 am

Re: TDE PauseTopDownDuringConversations Error

Post by ailurolatry »

I totally forgot about an initial character script that I made at the start of the project. It didn't even occur to me that it might interfere. :lol: This is what I get for staying up late. Thank you so much!
User avatar
Tony Li
Posts: 22152
Joined: Thu Jul 18, 2013 1:27 pm

Re: TDE PauseTopDownDuringConversations Error

Post by Tony Li »

Glad I could help! :-)
Post Reply