|
@@ -31,10 +31,11 @@ namespace ET.Client
|
|
|
bShaking = true;
|
|
|
|
|
|
Transform trans = GlobalViewComponent.Instance.BattleCamera.transform;
|
|
|
+ var savePos = trans.localPosition;
|
|
|
Tweener tweener = trans.DOShakePosition(shakeTime, shakeStength);
|
|
|
tweener.OnComplete<Tweener>(() =>
|
|
|
{
|
|
|
- trans.localPosition = Vector3.zero;
|
|
|
+ trans.localPosition = savePos;
|
|
|
bShaking = false;
|
|
|
});
|
|
|
}
|