hi
can we instantiate animation.Play(“gfg”); ???
1 Answer
1What’s there to instantiate in the line “animation.Play(“gfg”)” ???
animation refers to Animation component attached to the gameobject.
You are accessing Play method of animation component class passing a string “gfg”.
gfg - refers to the animation clip that has been added to the animation component.
Now what’s there to instantiate???
Ask your question in detail and post any code blocks where you are facing problem(s).