Re: <Increment On Destroy> Problem..
Posted: Fri Jan 08, 2021 11:34 am
god... i found a problem.
you were right. problem was my Custom SequencerCommand.
Debug.Log("SequencerCommandNPCState 들어옴");
for (int i = 0; i < parameters.Length; i++)
{
Debug.Log("i : " + GetSubject(i).gameObject);
GetSubject(i).GetComponent<NPCState>().CheckQuest(GetSubject(i).gameObject.name);
}
Stop();
this code was in Awake() and i moved it in Start() and no error!!!!!!!!!!!!!!!!!!
Thank you very much.
i'm really impressed this Dialogue system and your answers.
Thank you!!!!!!!!!!!!!!!!!!!
you were right. problem was my Custom SequencerCommand.
Debug.Log("SequencerCommandNPCState 들어옴");
for (int i = 0; i < parameters.Length; i++)
{
Debug.Log("i : " + GetSubject(i).gameObject);
GetSubject(i).GetComponent<NPCState>().CheckQuest(GetSubject(i).gameObject.name);
}
Stop();
this code was in Awake() and i moved it in Start() and no error!!!!!!!!!!!!!!!!!!
Thank you very much.
i'm really impressed this Dialogue system and your answers.
Thank you!!!!!!!!!!!!!!!!!!!