can we add sound to animation

can we add jump sound and foot steps and landing can we add more than one sound in one animation one the first time and other one in scond and back to first and like that can we add video to scene

finally if i made animation in pro program can unity make it exactly the same

You can sync sound to animation through the animation view, using animation events. This has two immediate advantages.

  1. It becomes easy to sync the sound precisely with animations.
  2. You don't have to write a lot of code.

If you want to play sounds just type:

var jumpSound : audioClip;

if(Some event has happend)


add a semi colon at the end of line 5