Instantiate (Hiteffect, Hit - Point, Quaternion - Lookrotation (Hit - Normal) )
Instantiate (Hiteffect, Hit - Point, Quaternion - Lookrotation (Hit - Normal) )
We do:
Vfx Is a gameObject we want to make its transform a child we define its parent
If I want a function to return and come back or want to wait a few sec before doing the next
thing while not stopping the execution of other things
We use IEnumerator as return type and instead of return we use yield return
Also the function which has this stuff needs a co routine function on call like
Use Lerp
For particle collding to gameobject use: onparticlecollisonenter() also make sure that the particle
has send collion message ON in collison
///////
By
//////////////
Animation adding
First need a animation controller then need animater on gameobject then attach the controller in
inspector of that gameObject
Lastlty use controller to add states an change state conditions . the animations goes on states in
animator controller.
then you can call a function to match the timing with the events.
///////
///////////////