Hey there :)
You could either do that via code, or via the inspector!
Using code:
[SerializeField] private ScreenView m_ScreenView;
void OnEnable()
{
m_ScreenView.onScreenEndTransition.AddListener(screenTransitionEnded);
}
void OnDisable()
{
m_ScreenView.onScreenEndTransition.RemoveListener(screenTransitionEnded);
}
private void screenTransitionEnded(int screenIndex)
{
Debug.Log("Screen (" + screenIndex + ") transition ended!");
}
Using the inspector:
Simply select your ScreenView GameObject, and you'll see two UnityEvents at the bottom, OnScreenBeginTransition and OnScreenEndTransition ;)