1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2026-02-16 20:11:52 +08:00

[BUGFIX] Fixed warning CS0219 on DOTweenModuleUtils.Preserver

This commit is contained in:
Demigiant 2019-02-28 11:31:46 +01:00
parent 605c5ba9be
commit 23214c0722
15 changed files with 5 additions and 1 deletions

View File

@ -52,6 +52,7 @@ namespace DG.Tweening
} }
#if UNITY_2018_1_OR_NEWER #if UNITY_2018_1_OR_NEWER
#pragma warning disable
[UnityEngine.Scripting.Preserve] [UnityEngine.Scripting.Preserve]
// Just used to preserve methods when building, never called // Just used to preserve methods when building, never called
static void Preserver() static void Preserver()
@ -59,6 +60,7 @@ namespace DG.Tweening
Assembly[] loadedAssemblies = AppDomain.CurrentDomain.GetAssemblies(); Assembly[] loadedAssemblies = AppDomain.CurrentDomain.GetAssemblies();
MethodInfo mi = typeof(MonoBehaviour).GetMethod("Stub"); MethodInfo mi = typeof(MonoBehaviour).GetMethod("Stub");
} }
#pragma warning restore
#endif #endif
#endregion #endregion

View File

@ -32,7 +32,7 @@ namespace DG.Tweening
public class DOTween public class DOTween
{ {
/// <summary>DOTween's version</summary> /// <summary>DOTween's version</summary>
public static readonly string Version = "1.2.200"; // Last version before modules: 1.1.755 public static readonly string Version = "1.2.201"; // Last version before modules: 1.1.755
/////////////////////////////////////////////// ///////////////////////////////////////////////
// Options //////////////////////////////////// // Options ////////////////////////////////////

Binary file not shown.

View File

@ -52,6 +52,7 @@ namespace DG.Tweening
} }
#if UNITY_2018_1_OR_NEWER #if UNITY_2018_1_OR_NEWER
#pragma warning disable
[UnityEngine.Scripting.Preserve] [UnityEngine.Scripting.Preserve]
// Just used to preserve methods when building, never called // Just used to preserve methods when building, never called
static void Preserver() static void Preserver()
@ -59,6 +60,7 @@ namespace DG.Tweening
Assembly[] loadedAssemblies = AppDomain.CurrentDomain.GetAssemblies(); Assembly[] loadedAssemblies = AppDomain.CurrentDomain.GetAssemblies();
MethodInfo mi = typeof(MonoBehaviour).GetMethod("Stub"); MethodInfo mi = typeof(MonoBehaviour).GetMethod("Stub");
} }
#pragma warning restore
#endif #endif
#endregion #endregion