1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 09:16:02 +08:00

[BUGFIX] Fixed LogBehaviour being requested before DOTween has been initialized in some cases

This commit is contained in:
Demigiant 2019-06-11 16:50:24 +02:00
parent c7ef004ea9
commit c45cfed370
15 changed files with 14 additions and 5 deletions

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 54ea8edd85487074990c4bcb2e45e0ec
timeCreated: 1560264502
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -15,7 +15,8 @@ namespace DG.Tweening.Core
public static class Debugger
{
// 0: errors only - 1: default - 2: verbose
public static int logPriority;
public static int logPriority { get { if (!DOTween.initialized) DOTween.Init(); return _logPriority; } }
public static int _logPriority;
const string _LogPrefix = "<color=#0099bc><b>DOTWEEN ► </b></color>";
@ -93,13 +94,13 @@ namespace DG.Tweening.Core
{
switch (logBehaviour) {
case LogBehaviour.Default:
logPriority = 1;
_logPriority = 1;
break;
case LogBehaviour.Verbose:
logPriority = 2;
_logPriority = 2;
break;
default:
logPriority = 0;
_logPriority = 0;
break;
}
}

View File

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

Binary file not shown.