Esempio n. 1
0
 private void ClearData()
 {
     this.shakedis   = 0f;
     this._shakeTime = 0f;
     this.shakeCycle = 0f;
     this.type       = (shakeType)0;
     this.ran        = 0f;
     this.angle      = 0f;
     this.count      = 0;
     this.isShake    = false;
 }
Esempio n. 2
0
 protected void StartCameraAnimation(CameraAnimation cameraData)
 {
     if (cameraData == null || this.mainCamera == null || this.isShake)
     {
         return;
     }
     if (cameraData.time > 0)
     {
         this.shakedis   = (float)cameraData.swing * 0.01f;
         this._shakeTime = (float)cameraData.time * 0.001f;
         this.shakeCycle = 90f;
         this.type       = (shakeType)cameraData.type;
         this.ran        = cameraData.rate;
         base.StartCoroutine(this.Shake());
     }
 }