Esempio n. 1
0
 private void OnCutsceneStart(UnityEventArgs args)
 {
     Debug.Log("Start Exclusive Dungeon cutscene!");
     m_CutsceneView      = (CutsceneView)args.Sender;
     m_isFinishTriggered = false;
     m_isFXPlayed        = false;
     mCameraAnimation.Rewind();
     foreach (String animation in m_animationQueue)
     {
         mCameraAnimation.CrossFadeQueued(animation, 0.7f, QueueMode.CompleteOthers);
     }
     enabled = true;
     FXMainCamera.Instance.CameraModus = FXMainCamera.EModus.Cutscene;
     FXMainCamera.Instance.CurrentCamera.transform.parent = mCameraAnimation.transform;
     if (m_skyObjectHandler != null)
     {
         Invoke("DeactivateInn", 4f);
         m_skyObjectHandler.LowLODObject.SetActive(true);
         m_skyObjectHandler.HighLODObject.SetActive(false);
         m_skyObjectHandler.LowLODObject.transform.parent        = mCameraAnimation.transform;
         m_skyObjectHandler.LowLODObject.transform.localPosition = Vector3.zero;
     }
     if (m_cutsceneObjects != null)
     {
         m_cutsceneObjects.ActivateObjects();
     }
     FXMainCamera.Instance.CurrentCamera.transform.localPosition = Vector3.zero;
     FXMainCamera.Instance.CurrentCamera.transform.localRotation = Quaternion.identity;
 }
 private void OnCutsceneStart(UnityEventArgs args)
 {
     Debug.Log("Start Exclusive Dungeon Ending cutscene!");
     transform.position = Vector3.zero;
     transform.rotation = Quaternion.identity;
     m_CutsceneView     = (CutsceneView)args.Sender;
     StartCoroutine(PlayAnim());
 }
Esempio n. 3
0
 private void OnCutsceneStart(UnityEventArgs args)
 {
     Debug.Log("Start ErebosFinishing cutscene!");
     m_CutsceneView = (CutsceneView)args.Sender;
     m_Root.SetActive(true);
     StartCoroutine(PlayAnim());
     FXMainCamera.Instance.CameraModus = FXMainCamera.EModus.Cutscene;
     FXMainCamera.Instance.CurrentCamera.transform.parent = m_ErebosCameraAnchor.transform;
 }
 private void OnCutsceneStart(UnityEventArgs args)
 {
     Debug.Log("Start Crystal Spider cutscene!");
     m_CutsceneView = (CutsceneView)args.Sender;
     enabled        = true;
     m_CrystalSpiderAnimation.gameObject.SetActive(true);
     StartCoroutine(PlayAnim());
     FXMainCamera.Instance.CameraModus = FXMainCamera.EModus.Cutscene;
     FXMainCamera.Instance.CurrentCamera.transform.parent = m_CameraAnchor.transform;
 }
 private void OnCutsceneStart(UnityEventArgs args)
 {
     m_CutsceneView = (CutsceneView)args.Sender;
     enabled        = true;
     FXMainCamera.Instance.CameraModus = FXMainCamera.EModus.Cutscene;
     FXMainCamera.Instance.CurrentCamera.transform.parent = transform;
     animation.Play();
     FXMainCamera.Instance.CurrentCamera.transform.localPosition = Vector3.zero;
     FXMainCamera.Instance.CurrentCamera.transform.localRotation = Quaternion.identity;
 }
Esempio n. 6
0
 private void OnCutsceneStart(UnityEventArgs args)
 {
     Debug.Log("Start community boss cutscene!");
     m_CutsceneView        = (CutsceneView)args.Sender;
     m_isFinishTriggered   = false;
     m_isFXPlayed          = false;
     m_CameraMover.enabled = true;
     m_CameraMover.Timer   = 0f;
     enabled = true;
     FXMainCamera.Instance.CameraModus = FXMainCamera.EModus.Cutscene;
     FXMainCamera.Instance.CurrentCamera.transform.parent = m_CameraMover.transform;
 }
 private void OnCutsceneStart(UnityEventArgs args)
 {
     Debug.Log("Start MarkusWolfEntrance cutscene!");
     m_CutsceneView        = (CutsceneView)args.Sender;
     m_TriggeredFinish     = false;
     m_CameraMover.enabled = true;
     m_CameraMover.Timer   = 0f;
     enabled = true;
     m_Time  = Time.time;
     FXMainCamera.Instance.CameraModus = FXMainCamera.EModus.Cutscene;
     FXMainCamera.Instance.CurrentCamera.transform.parent = m_CameraMover.transform;
 }
Esempio n. 8
0
 private void OnCutsceneStart(UnityEventArgs args)
 {
     Debug.Log("Start TaralethLand cutscene!");
     m_CutsceneView                    = (CutsceneView)args.Sender;
     enabled                           = true;
     transform.position                = Vector3.zero;
     transform.rotation                = Quaternion.identity;
     m_time                            = Time.time;
     m_CameraMover.enabled             = true;
     m_CameraMover.Timer               = 0f;
     m_TriggeredTaralethLandAnimation  = false;
     m_TriggeredTaralethSwtich         = false;
     FXMainCamera.Instance.CameraModus = FXMainCamera.EModus.Cutscene;
     FXMainCamera.Instance.CurrentCamera.transform.parent = m_CameraMover.transform;
 }
Esempio n. 9
0
 private void OnCutsceneStart(UnityEventArgs args)
 {
     Debug.Log("Start TaralethFlyby cutscene!");
     m_CutsceneView                   = (CutsceneView)args.Sender;
     transform.position               = Vector3.zero;
     transform.rotation               = Quaternion.identity;
     enabled                          = true;
     m_time                           = Time.time;
     m_TiggeredEnableDragonMover      = false;
     m_TiggeredEnableCameraMover      = false;
     m_finishTriggered                = false;
     m_DragonMover.enabled            = true;
     m_DragonMover.PositionTimer.Time = 0f;
     m_DragonMover.gameObject.SetActive(false);
     m_CameraMover.enabled            = true;
     m_CameraMover.PositionTimer.Time = 0f;
     m_CameraMover.gameObject.SetActive(false);
     FXMainCamera.Instance.CameraModus = FXMainCamera.EModus.Cutscene;
 }