public void HandleEvent(UIControl control, int command, float wparam, float lparam) { if (control == startButton) { string path = Application.dataPath + "/../../Documents/"; if (File.Exists(path + "MySavedGame.game")) { gameDialog.Show(); } else { Yes(); } AudioPlayer.PlayAudio(GetComponent <AudioSource>()); } else if (control == continueButton) { AudioPlayer.PlayAudio(GetComponent <AudioSource>()); FadeAnimationScript.GetInstance().FadeInBlack(); fadeTimer.Name = "Continue"; fadeTimer.SetTimer(0.5f, false); } }
public void StartStep(TutorialScript ts, Player player) { this.ts = ts; player.InputController.EnableMoveInput = false; player.InputController.EnableTurningAround = false; player.InputController.EnableShootingInput = false; player.InputController.CameraRotation = Vector2.zero; guis.EnableTutorialOKButton(true); GameDialog dialog = GameUIScript.GetGameUIScript().GetDialog(); dialog.SetText("\nCONGRATS! YOU'VE COMPLETED THE CALL OF MINI BOOTCAMP! READY TO GO INTO BATTLE?"); dialog.Show(); }
public void StartStep(TutorialScript ts, Player player) { this.ts = ts; player.InputController.EnableMoveInput = false; player.InputController.EnableTurningAround = false; player.InputController.EnableShootingInput = false; player.InputController.CameraRotation = Vector2.zero; guis.EnableTutorialOKButton(true); GameDialog dialog = GameUIScript.GetGameUIScript().GetDialog(); dialog.SetText("\nTAP AND SLIDE ON THE SCREEN TO ADJUST YOUR LINE OF SIGHT, THEN AIM AT THE BOX IN FRONT OF YOU."); dialog.Show(); }
public void StartStep(TutorialScript ts, Player player) { this.ts = ts; player.InputController.EnableMoveInput = false; player.InputController.EnableTurningAround = false; player.InputController.EnableShootingInput = false; player.InputController.CameraRotation = Vector2.zero; guis.EnableTutorialOKButton(true); GameDialog dialog = GameUIScript.GetGameUIScript().GetDialog(); dialog.SetText("\nOK, NOW YOU'RE READY TO TRY USING YOUR WEAPON. USE THE RIGHT JOYSTICK TO AIM AT AND SHOOT THE BOX IN FRONT OF YOU."); dialog.Show(); }
public void StartStep(TutorialScript ts, Player player) { this.ts = ts; player.InputController.EnableMoveInput = false; player.InputController.EnableTurningAround = false; player.InputController.EnableShootingInput = false; player.InputController.CameraRotation = Vector2.zero; guis.EnableTutorialOKButton(true); GameDialog dialog = GameUIScript.GetGameUIScript().GetDialog(); dialog.SetText("\nALRIGHT, NOW THAT YOU'VE GOT DOWN THE BASICS, TRY SHOOTING THE ZOMBIE IN FRONT OF YOU."); dialog.Show(); }
public void StartStep(TutorialScript ts, Player player) { this.ts = ts; player.InputController.EnableMoveInput = false; player.InputController.EnableTurningAround = false; player.InputController.EnableShootingInput = false; player.InputController.CameraRotation = Vector2.zero; GameObject halo = GameObject.Instantiate(GameApp.GetInstance().GetResourceConfig().halo, player.GetTransform().TransformPoint(Vector3.forward * 15.0f), Quaternion.Euler(90, 0, 0)) as GameObject; halo.name = "Halo"; GameDialog dialog = GameUIScript.GetGameUIScript().GetDialog(); dialog.SetText("\nUSE THE LEFT JOYSTICK TO WALK AROUND. GO AHEAD AND WALK INTO THE CIRCLE OF PULSATING LIGHT."); dialog.Show(); //dialogText.Rect = uiPos.DesignerText; }