Exemplo n.º 1
0
 void Shake()
 {
     if (hero.property.isMainHero)
     {
         if (displayInfor.CameraShakeScale > 0 && displayInfor.CameraShakeTime > 0)
         {
             if (displayInfor.CameraShakeFile.Length > 0)
             {
                 SceneCamera.Shake(displayInfor.CameraShakeFile, displayInfor.CameraShakeTime, displayInfor.CameraShakeSpeed, displayInfor.CameraShakeScale);
             }
             else
             {
                 SceneCamera.Shake(displayInfor.CameraShakeTime, displayInfor.CameraShakeScale, SHAKE_TYPE.SUDDENLY);
             }
         }
     }
 }