Demigiant Forum

Unity Assets => DOTween & DOTween Pro => Topic started by: sorv on May 09, 2015, 07:16:55 PM

Title: DG,Tweening.Tween.onComplete inaccessible
Post 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
Title: Re: DG,Tweening.Tween.onComplete inaccessible
Post by: Daniele on May 09, 2015, 11:06:46 PM
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:
Code: [Select]
tween.onComplete = OnCompleteCallback;with
Code: [Select]
tween.OnComplete(OnCompleteCallback);and you're done
Title: Re: DG,Tweening.Tween.onComplete inaccessible
Post by: sorv on May 10, 2015, 11:03:54 AM
Ahh I completely missed that, sorry for that!
Thank you very much for your awesome work, will upgrade to Pro asap!
Title: Re: DG,Tweening.Tween.onComplete inaccessible
Post by: Daniele on May 10, 2015, 12:07:57 PM
Thanks to you :)