示例#1
0
 void OnHold(EventContext context)
 {
     GTween.Shake(_ball.transform.localPosition, 0.05f, 0.5f).SetTarget(_ball).OnUpdate(
         (GTweener tweener) =>
     {
         _ball.transform.localPosition = new Vector3(tweener.value.x, tweener.value.y, _ball.transform.localPosition.z);
     });
 }