From 771679ebb568b4540f3a416820df507a9d2060ae Mon Sep 17 00:00:00 2001 From: Jon Manning Date: Sat, 27 Mar 2021 18:31:39 +1100 Subject: [PATCH] Don't warn about DialogueUI being obsolete in Yarn Spinner test code --- Tests/Runtime/DialogueUITests.cs | 2 ++ Tests/Runtime/VariableStorageTests.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Tests/Runtime/DialogueUITests.cs b/Tests/Runtime/DialogueUITests.cs index e4777a4d..dab48c63 100644 --- a/Tests/Runtime/DialogueUITests.cs +++ b/Tests/Runtime/DialogueUITests.cs @@ -7,6 +7,8 @@ using UnityEngine.UI; using Yarn.Unity; +#pragma warning disable CS0618 // 'member' is obsolete (done to prevent 'DialogueUI is obsolete' messages in Unity - these are valid messages, but it's not useful to warn the Unity developer about code they can't modify) + namespace Yarn.Unity.Tests { public class DialogueUITests : IPrebuildSetup, IPostBuildCleanup diff --git a/Tests/Runtime/VariableStorageTests.cs b/Tests/Runtime/VariableStorageTests.cs index f7686d49..a7bbdc80 100644 --- a/Tests/Runtime/VariableStorageTests.cs +++ b/Tests/Runtime/VariableStorageTests.cs @@ -8,6 +8,8 @@ using UnityEngine.UI; using Yarn.Unity; +#pragma warning disable CS0618 // 'member' is obsolete (done to prevent 'DialogueUI is obsolete' messages in Unity - these are valid messages, but it's not useful to warn the Unity developer about code they can't modify) + namespace Yarn.Unity.Tests { public class VariableStorageTests : IPrebuildSetup, IPostBuildCleanup