mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-20 17:26:03 +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
|
||||
{
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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.
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