Author Topic: errors....  (Read 3796 times)

Rooster

  • Guest
errors....
« on: July 09, 2012, 03:37:57 AM »
just imported 2.0.9 into a new, clean, empty project, and immediately get these errors:

Assets/NGUI/Scripts/Interaction/UIButtonTween.cs(32,42): error CS0117: `Trigger' does not contain a definition for `OnClick'

Assets/NGUI/Scripts/Interaction/UIButtonPlayAnimation.cs(33,42): error CS0117: `Trigger' does not contain a definition for `OnClick'

Haven't put anything into the project yet except for NGUI.   Thanks.

joreldraw

  • Guest
Re: errors....
« Reply #1 on: July 09, 2012, 04:32:06 AM »
I make a clean project and inport NGUI 2.09 and all work fine here. No errors.

Ensure you check all files when inport Ngui.
If not, check AnimationOrTween.cs . There is placed the Triggers.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: errors....
« Reply #2 on: July 09, 2012, 10:07:45 AM »
Sounds like you have a class in your project called "Trigger". Rename it to something else.

gw1108

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: errors....
« Reply #3 on: June 19, 2014, 07:33:15 PM »
I solved this problem by replacing Trigger with AnimationOrTween.Trigger . Kinda hacky.