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.