Demigiant Forum
Unity Assets => DOTween & DOTween Pro => Topic started by: sorv on May 09, 2015, 07:16:55 PM
-
Good evening,
after upgrading to the latest DOTween version, every tween.onComplete references that I had, is now saying:
error CS0122: `DG.Tweening.Tween.onComplete' is inaccessible due to its protection level
Any ideas would be appreciated!
best,
Hans
-
Hi,
That was changed a long time ago, because users were using that instead of OnComplete, and in the wrong way. I'm sorry you still have that legacy code, but just replace:
tween.onComplete = OnCompleteCallback;
with
tween.OnComplete(OnCompleteCallback);
and you're done
-
Ahh I completely missed that, sorry for that!
Thank you very much for your awesome work, will upgrade to Pro asap!
-
Thanks to you :)