Skip to content

Commit a9c274d

Browse files
committed
Merge branch 'develop' into feature-fix-149-TouchWidget
2 parents b94c98e + f1f060e commit a9c274d

20 files changed

+43
-7
lines changed

Config.json.enc

0 Bytes
Binary file not shown.

Examples/ServiceExamples/Scripts/ExampleAlchemyLanguage.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
using IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1;
2121
using IBM.Watson.DeveloperCloud.Logging;
2222

23+
#pragma warning disable 0219
24+
#pragma warning disable 0414
2325
public class ExampleAlchemyLanguage : MonoBehaviour
2426
{
2527
private AlchemyAPI m_AlchemyAPI = new AlchemyAPI();
@@ -52,7 +54,7 @@ void Start()
5254
// Log.Debug("ExampleAlchemyLanguage", "Failed to get concepts HTML POST!");
5355

5456
////Get Concepts URL POST
55-
//if (!m_AlchemyAPI.GetRankedConcepts(OnGetConcepts, m_ExampleURL_watsonJeopardy))
57+
//if (!m_AlchemyAPI.GetRankedConcepts(OnGetCzoncepts, m_ExampleURL_watsonJeopardy))
5658
// Log.Debug("ExampleAlchemyLanguage", "Failed to get concepts HTML POST!");
5759

5860
////Get Date URL POST

Examples/ServiceExamples/Scripts/ExampleRetrieveAndRank.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
using UnityEditor;
2626
#endif
2727

28+
#pragma warning disable 219
2829
public class ExampleRetrieveAndRank : MonoBehaviour
2930
{
3031
private RetrieveAndRank m_RetrieveAndRank = new RetrieveAndRank();

Examples/ServiceExamples/Scripts/ExampleTextToSpeech.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
using UnityEngine;
1919
using IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1;
2020
using IBM.Watson.DeveloperCloud.Logging;
21+
#pragma warning disable 0414
2122

2223
public class ExampleTextToSpeech : MonoBehaviour
2324
{

Examples/ServiceExamples/Scripts/ExampleVisualRecognition.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
using IBM.Watson.DeveloperCloud.Logging;
2323
using IBM.Watson.DeveloperCloud.Utilities;
2424

25+
#pragma warning disable 0414
26+
2527
public class ExampleVisualRecognition : MonoBehaviour
2628
{
2729
private VisualRecognition m_VisualRecognition = new VisualRecognition();

Scripts/Camera/CameraTarget.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*
1616
*/
1717

18+
//#define SPLINE_INTERPOLATOR
1819

1920
using UnityEngine;
2021
using IBM.Watson.DeveloperCloud.Logging;
@@ -51,8 +52,10 @@ public class CameraTarget : MonoBehaviour
5152
private float m_RatioAtCameraPath = 0.0f;
5253
[SerializeField]
5354
private Vector3 m_DistanceFromCamera = Vector3.zero;
55+
#if SPLINE_INTERPOLATOR
5456
[SerializeField]
5557
private SplineInterpolator m_SplineInterpolator;
58+
#endif
5659
private Transform[] m_PathTransforms;
5760

5861
[SerializeField]
@@ -174,6 +177,7 @@ public Vector3 TargetPosition
174177
{
175178
get
176179
{
180+
#if SPLINE_INTERPOLATOR
177181
if (m_CameraPathRootObject != null)
178182
{
179183
if (m_PathTransforms == null)
@@ -208,7 +212,9 @@ public Vector3 TargetPosition
208212
}
209213

210214
}
211-
else if (m_UseCustomPosition)
215+
else
216+
#endif
217+
if (m_UseCustomPosition)
212218
{
213219
return m_CustomPosition;
214220
}
@@ -410,6 +416,8 @@ public void SetTargetPositionWithOffset(Vector3 offsetPosition)
410416

411417
#endregion
412418

419+
#if SPLINE_INTERPOLATOR
420+
413421
void OnDrawGizmos()
414422
{
415423
if (m_CameraPathRootObject != null)
@@ -445,6 +453,8 @@ void OnDrawGizmos()
445453
}
446454
}
447455
}
456+
457+
#endif
448458
}
449459

450460
}

Scripts/Connection/WSConnector.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
using System.Threading;
2626
using WebSocketSharp;
2727

28+
#pragma warning disable 0618
29+
2830
namespace IBM.Watson.DeveloperCloud.Connection
2931
{
3032
/// <summary>

Scripts/Services/PersonalityInsights/PersonalityInsights.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ public bool GetProfile(OnGetProfile callback, string source,
8888
req.Headers["Content-Language"] = contentLanguage;
8989
req.Headers["Accept"] = accept;
9090
req.Headers["Accept-Language"] = acceptLanguage;
91-
92-
string normalizedSource = source.Trim().ToLower();
91+
9392
if (source.StartsWith(Application.dataPath))
9493
{
9594
string jsonData = default(string);

Scripts/UnitTests/TestAlchemyLanguage.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
using UnityEngine;
2323
using System.Collections.Generic;
2424

25+
#pragma warning disable 219
26+
#pragma warning disable 0414
27+
2528
namespace IBM.Watson.DeveloperCloud.UnitTests
2629
{
2730
public class TestAlchemyAPI : UnitTest

Scripts/UnitTests/TestConversationExperimental.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
using IBM.Watson.DeveloperCloud.Utilities;
2323
using IBM.Watson.DeveloperCloud.Logging;
2424

25+
#pragma warning disable 0169
26+
#pragma warning disable 0414
2527
public class TestConversationExperimental// : UnitTest // Commented out integration test
2628
{
2729
private ConversationExperimental m_Conversation = new ConversationExperimental();

0 commit comments

Comments
 (0)