OnConversationEnd Problem
Posted: Sat Aug 19, 2017 1:09 pm
Hallo friends,
i have a little problem.
I have 3 Scenes + 1 Dialogue Manager Database + 2 Conversations.
now my Problem:
Script Scene01.cs has following function
I add the script to the Dialogue Manager in Scene01
Script Scene02.cs has following function
I add the script to the Dialogue Manager in Scene02
Example:
Start New Game -> Scene01 is loading -> Conversation01 is loading -> Conversation01 finish -> trigger OnConversationEnd() -> Perfect Scene02 is loading
Scene02 is loaded -> Conversation02 is loading -> Conversation02 finish -> trigger OnConversationEnd() -> ERROR Scene02 is loading.
Question how can i override the OnConversationEnd() function.
i have a little problem.
I have 3 Scenes + 1 Dialogue Manager Database + 2 Conversations.
now my Problem:
Script Scene01.cs has following function
Code: Select all
void OnConversationEnd(Transform actor)
{
SceneManager.LoadScene("Scene02",LoadSceneMode.Single);
}
Script Scene02.cs has following function
Code: Select all
void OnConversationEnd(Transform actor)
{
SceneManager.LoadScene("Scene03",LoadSceneMode.Single);
}
Example:
Start New Game -> Scene01 is loading -> Conversation01 is loading -> Conversation01 finish -> trigger OnConversationEnd() -> Perfect Scene02 is loading
Scene02 is loaded -> Conversation02 is loading -> Conversation02 finish -> trigger OnConversationEnd() -> ERROR Scene02 is loading.
Question how can i override the OnConversationEnd() function.