public static bool IsShowing(RabbitHole venue, float hours24) { Theatre theatre = venue as Theatre; if (theatre == null) { ComboCriminalTheater theatre2 = venue as ComboCriminalTheater; if (theatre2 == null) { ComboStadiumTheatre theatre3 = venue as ComboStadiumTheatre; if (theatre3 == null) { return(false); } theatre = theatre3.GetTheatre(); } theatre = theatre2.GetTheatre(); } if (theatre == null) { return(false); } return(theatre.IsOpenAt(hours24)); }