DG,Tweening.Tween.onComplete inaccessible
« 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

*

Daniele

  • Dr. Admin, I presume
  • *****
  • 378
    • View Profile
    • Demigiant
Re: DG,Tweening.Tween.onComplete inaccessible
« Reply #1 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

Re: DG,Tweening.Tween.onComplete inaccessible
« Reply #2 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!

*

Daniele

  • Dr. Admin, I presume
  • *****
  • 378
    • View Profile
    • Demigiant
Re: DG,Tweening.Tween.onComplete inaccessible
« Reply #3 on: May 10, 2015, 12:07:57 PM »
Thanks to you :)