private void PlaceGamePiece(GamePiece gamePiece, int x, int y, EInterpType interpolation) { if (!gamePiece) { Debug.LogWarning($"BOARD: invalid gamePiece."); return; } gamePiece.interpolation = interpolation; gamePiece.transform.position = new Vector3(x, y, 0); gamePiece.transform.rotation = Quaternion.identity; gamePiece.SetCoord(x, y); }
public static float Get(EInterpType interpType, float t) => interpType switch {