Jump to content
GreenSock

momo12

Struggling with OnEnter and OnLeave

Go to solution Solved by GreenSock,

Recommended Posts

  • momo12 changed the title to Struggling with OnEnter and OnLeave
  • Solution

Because you literally invoked the function and assigned the RESULT of that function call to the onEnter.

// BAD
onEnter: a()

// GOOD
onEnter: a

 

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

19 minutes ago, GreenSock said:

Because you literally invoked the function and assigned the RESULT of that function call to the onEnter.

// BAD
onEnter: a()

// GOOD
onEnter: a

 

Thanks :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×