Example #1
0
 private void AnimateNextMesh()
 {
     if (LevelsManager.HasNextMesh())
     {
         MeshInfo info = LevelsManager.GetNextMeshInfo();
         objectToSlice.GetComponent <MeshFilter>().mesh = info.mesh;
         Base b = objectToSlice.GetComponent <Base>();
         b.SetLocalPositionZ(Random.Range(objectToSliceMinLocalPosZ, objectToSliceMaxLocalPosZ));
         b.SetScale(0);
         b.SetRotationY(info.rotation.y - 180);
         b.Activate();
         b.Sequence(
             b.Scale(1, 0.4f).SetEase(Ease.OutBack)
             );
         b.Sequence(
             b.RotateY(info.rotation.y, 0.4f).SetEase(Ease.InSine),
             OnFinish(() => canCut = true)
             );
     }
     else
     {
         Events.RequestFinish.Call();
     }
 }
Example #2
0
 protected override void OnFinishShowing()
 {
     holder.Activate();
     AnimateFinger();
 }