Setting up the Movement Component

Now that we have finished creating the Movement Component, we need to attach it to the Panda Hero Object. The required components won't add anything new because we already have all the components that we need.

Besides tweaking the values for your game, the important setting is the groundCheck transform variable, which needs to be properly initialized. As such, take the Ground Check (which is attached to the Panda Hero), and drag it into the groundCheck variable. As a result, the component should appear in the Inspector as this:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset