void EnterOffice() { heistPoster.UpdateInfo(gm.GetCurrentLevel().picToSteal, gm.GetCurrentLevel().pointsToSteal); howToPlay.TurnOn(); deskPhone.TurnOn(); deskPhone.Pulse(); switch (gm.levelState) { case GameManager.LevelState.NewGame: phone.SetMsgs(gm.GetCurrentLevel().newHeistMsgs); howToPlay.Pulse(); break; case GameManager.LevelState.NewLevel: phone.SetMsgs(gm.GetCurrentLevel().newHeistMsgs); break; case GameManager.LevelState.ForgotPainting: phone.SetMsgs(gm.GetCurrentLevel().forgotItMsgs); break; case GameManager.LevelState.WrongPainting: phone.SetMsgs(gm.GetCurrentLevel().wrongOneMsgs); break; case GameManager.LevelState.RightPainting: phone.SetMsgs(gm.GetCurrentLevel().gotItMsgs); break; } }
// called from office manager after phone has displayed text msgs and slides offscreen public void AfterPhoneSlideOut() { foreach (OfficeItem item in otherItems) { item.TurnOn(); } switch (gm.levelState) { case GameManager.LevelState.NewGame: gm.levelState = GameManager.LevelState.NewLevel; heistInfo.TurnOn(); heistInfo.Pulse(); deskPhone.TurnOff(); break; case GameManager.LevelState.NewLevel: heistInfo.TurnOn(); heistInfo.Pulse(); deskPhone.TurnOff(); break; case GameManager.LevelState.ForgotPainting: heistInfo.TurnOn(); heistInfo.Pulse(); map.TurnOn(); map.Pulse(); deskPhone.TurnOff(); break; case GameManager.LevelState.WrongPainting: AddScore(gm.CollectPoints()); break; case GameManager.LevelState.RightPainting: AddScore(gm.CollectPoints()); break; } }