I´m new in Unity. I’m trying ti create an Enemy which can throw a ball to an object. I created tow animations for that. One is the “waiting” animation that is a loop and repeats over and over again. Between this loop there is a “fire” animation which the Enemy Throw a ball to this object. The enemy have to spawn the ball in the hand of it every time it was thrown…
the first stop for finding out how things work should always be the Unity Scripting API and the Unity User Manual. To make your enemy throw the object, you need to know about three things:
The animations (which you already have), and how to play them (this differs depending on wether you use the old Animation component, or the newer Animator component).
A prefab of an object that will be spawned in the hand, and the Instantiate function to make a copy of this prefab in the game world
A script on the object to make it move towards the target position. Vector3.Lerp or Transform.Translate would be simple solutions, but for realistic behavior you might want to give the ball or whatever a RigidBody and use the AddForce function when it is thrown.