protected override Tween DOPlay()
 {
     if (null == m_Camera)
     {
         return(null);
     }
     // end if
     if (m_strengthVec == null || m_strengthVec == Vector3.zero)
     {
         return(m_Camera.DOShakePosition(m_duration, m_strength, m_vibrato, m_randomness, m_fadeOut));
     } // end if
     return(m_Camera.DOShakePosition(m_duration, m_strengthVec, m_vibrato, m_randomness, m_fadeOut));
 }
예제 #2
0
 public override void StartStep()
 {
     FindObjectOfType<GameUIManager>().gameObject.SetActive(false);
     mainCamera = Camera.main;
     cameraManager = mainCamera.gameObject.GetComponent<CameraManager>();
     cameraManager.enabled = false;
     mainCamera.DOShakePosition(duration, strenght, vibrato).OnComplete(OnShakeComplete);
 }