Using James Model and texture.
Add files into assets folders
Put these files into folders Textures and SharkMan
Check that the model has been imported correctly, scale factor and textures are right.
Check the Rig, this needs to be put as legacy as the animation was made in frames after one another.
The animation has been made in one long file, you can see this in the animation settings, this needs to be cut into different sections.
Shows you the different frames of the animation:
You can change the tolerances, if animation isn’t quiet right
Add more clips and add names
For Idel animation cut the clip, this should be looped
Do this for Swim and Transition (without loop) remember to apply (these needs to be in the right order…
Add model onto screen
Create C Sharp File – Test
Add public Animation anim
And add GetComponent under Start
Create new function TestAnim, which sets the animation depending on input
In void run the function
Make a Shark Man Controller by creating an Empty
And Parent this to SharkMan
Then in the code add GameObject.Find(“”).
To make move add a transform.Translate under the test anim.
In the inspector make sure Anim is linked
HE swims backwards so needs to be flipped 180