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:
parent
c7ef004ea9
commit
c45cfed370
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 54ea8edd85487074990c4bcb2e45e0ec
|
||||||
|
timeCreated: 1560264502
|
||||||
|
licenseType: Pro
|
||||||
|
DefaultImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
Binary file not shown.
@ -15,7 +15,8 @@ namespace DG.Tweening.Core
|
|||||||
public static class Debugger
|
public static class Debugger
|
||||||
{
|
{
|
||||||
// 0: errors only - 1: default - 2: verbose
|
// 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>";
|
const string _LogPrefix = "<color=#0099bc><b>DOTWEEN ► </b></color>";
|
||||||
|
|
||||||
@ -93,13 +94,13 @@ namespace DG.Tweening.Core
|
|||||||
{
|
{
|
||||||
switch (logBehaviour) {
|
switch (logBehaviour) {
|
||||||
case LogBehaviour.Default:
|
case LogBehaviour.Default:
|
||||||
logPriority = 1;
|
_logPriority = 1;
|
||||||
break;
|
break;
|
||||||
case LogBehaviour.Verbose:
|
case LogBehaviour.Verbose:
|
||||||
logPriority = 2;
|
_logPriority = 2;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
logPriority = 0;
|
_logPriority = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -34,7 +34,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.252"; // Last version before modules: 1.1.755
|
public static readonly string Version = "1.2.255"; // Last version before modules: 1.1.755
|
||||||
|
|
||||||
///////////////////////////////////////////////
|
///////////////////////////////////////////////
|
||||||
// Options ////////////////////////////////////
|
// Options ////////////////////////////////////
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user