DialogueSystemTrigger and custom condition
Posted: Sat Dec 19, 2020 8:36 am
Hi,
With DialogueSystemTrigger's Required condition,
How can I use my customized variable from my custom class/instance?
For example, I have a class called GameProgressManager and it has a bool variable "IsTutorialClear`.
I want to check this specific instance's variable like how usual c# does:
then this becomes one of the condition? like one of Lua Condition?
With DialogueSystemTrigger's Required condition,
How can I use my customized variable from my custom class/instance?
For example, I have a class called GameProgressManager and it has a bool variable "IsTutorialClear`.
I want to check this specific instance's variable like how usual c# does:
Code: Select all
if (GameObject.FindObjectByType<GameProgressManager>().IsTutorialClear)
{
return true; // then this becomes one of the condition? like one of Lua Condition?
}