Code: Select all
DialogueManager.instance.conversationEnded += OnConversationEnd;
However, I always get the other actor that the player is talking to, even if I have the player as Actor in the START-node.
What decides which actor is sent with this call?
Can I fix this, without having to put an OnConversationEnd on the actor itself?
Code: Select all
private void OnConversationEnd(Transform actor) {
Debug.Log("OnConversationEnd with " + actor + "", actor.gameObject);
if (actor == playerTransform) {
MasterManager.GameManager.cutSceneController.HideBars();
MasterManager.GameManager.cutSceneController.SetCameraZoomNormal();
}
}