private void OnPositionChanged(GemController sender, int x, int y, bool interpolate)
 {
     CurrentX = x;
     CurrentY = y;
     movingComponent.MoveTo(new Vector3(positionOffset.x * x + x, positionOffset.y * y + y), interpolate, () => { instance.OnMovingEnd(); });
     if (interpolate)
     {
         instance.OnMovingStart();
     }
 }
Ejemplo n.º 2
0
 public void SetPosition(int index)
 {
     movingComponent.MoveTo(new Vector3(index, 0.0f, 0.0f), true);
 }