// Add a row fade animation to the queue // TODO: This doesn't feel like the optimal solution. public void addFadeAnimationBatch(ITileAnimation tileAnimation, float fadeTime, int animationType, int fieldSize) { animationTimes.Add(fadeTime); rowSize.Add(fieldSize); animationList.Add(tileAnimation); tileAnimationType.Add(animationType); destinationList.Add(new Vector3(0, 0, 0)); }
// Add a row move animation to the queue // TODO: This doesn't feel like the optimal solution. public void addMoveAnimationBatch(ITileAnimation tileAnimation, float movingTime, Vector3 pieceDestination, int fieldSize) { animationTimes.Add(movingTime); rowSize.Add(fieldSize); animationList.Add(tileAnimation); destinationList.Add(pieceDestination); tileAnimationType.Add(4); }
// Add a move animation to the queue public void addMoveAnimation(ITileAnimation tileAnimation, float movingTime, Vector3 pieceDestination) { animationTimes.Add(movingTime); rowSize.Add(0); animationList.Add(tileAnimation); destinationList.Add(pieceDestination); tileAnimationType.Add(0); }