private static bool IsTransitioning(UIBehaviour ui) { if (ui == null) { return(false); } return(ui.IsTransitioning()); }