public void Deactive(PhaseScreens screenType) { foreach (var screen in listUIScreen) { if (screen.GetScreenType() == screenType) { screen.Deactivate(); onDeactiveCallback?.Invoke(screenType); onDeactiveCallback = null; return; } } }
public void Activate(PhaseScreens screenType, Plot plot) { Debug.Log((int)screenType); foreach (var screen in listUIScreen) { Debug.Log((int)(screen.GetScreenType())); if (screen.GetScreenType() == screenType) { screen.SetPlot(plot); screen.Activate(); return; } } }
public void SubcribeOnDeactive(PhaseScreens screenType, OnDeactivate functionCallback) { onDeactiveCallback = functionCallback; }