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.
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:
Thanks!
TDE PauseTopDownDuringConversations Error
-
- Posts: 2
- Joined: Tue Feb 15, 2022 12:39 am
Re: TDE PauseTopDownDuringConversations Error
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)
do something like this:
Character.cs (not TDE's)
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
{
...
}
Character.cs (not TDE's)
Code: Select all
// Well-behaved code:
using UnityEngine;
namespace SomeNamespace
{
public class Character : MonoBehaviour
{
...
}
}
-
- Posts: 2
- Joined: Tue Feb 15, 2022 12:39 am
Re: TDE PauseTopDownDuringConversations Error
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. This is what I get for staying up late. Thank you so much!
Re: TDE PauseTopDownDuringConversations Error
Glad I could help!