|
|
@ -96,7 +96,7 @@ namespace Fungus |
|
|
|
#region Backwards compatibility |
|
|
|
#region Backwards compatibility |
|
|
|
|
|
|
|
|
|
|
|
[HideInInspector] [FormerlySerializedAs("target")] [FormerlySerializedAs("targetObject")] public GameObject targetObjectOLD; |
|
|
|
[HideInInspector] [FormerlySerializedAs("target")] [FormerlySerializedAs("targetObject")] public GameObject targetObjectOLD; |
|
|
|
[HideInInspector] [FormerlySerializedAs("tweenName")] public string tweenNameOLD; |
|
|
|
[HideInInspector] [FormerlySerializedAs("tweenName")] public string tweenNameOLD = ""; |
|
|
|
[HideInInspector] [FormerlySerializedAs("duration")] public float durationOLD; |
|
|
|
[HideInInspector] [FormerlySerializedAs("duration")] public float durationOLD; |
|
|
|
|
|
|
|
|
|
|
|
protected virtual void OnEnable() |
|
|
|
protected virtual void OnEnable() |
|
|
@ -107,6 +107,12 @@ namespace Fungus |
|
|
|
targetObjectOLD = null; |
|
|
|
targetObjectOLD = null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (tweenNameOLD != "") |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
_tweenName.Value = tweenNameOLD; |
|
|
|
|
|
|
|
tweenNameOLD = ""; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (durationOLD != default(float)) |
|
|
|
if (durationOLD != default(float)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
_duration.Value = durationOLD; |
|
|
|
_duration.Value = durationOLD; |
|
|
|