Move this line to InitializeScript from PageActivated:
Pageobsperiscope.AnimationStopped += Pageobsperiscope_AnimationStopped
move it's assocaited -= to unload script
add this to the end of InitializeScript:
Menu_PageActivated( Pageobsperiscope )
remove pass from startgame and unloadscript
remove stray comma after 5:
if d.Hour in [ 22,23,0,1,2,3,4,5, ]:
|