Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

how to start 2 different animations to a prefab from which the game starts

Discussion in 'Animation' started by unity_7952D189DF0DE49E34F2, Nov 20, 2021.

  1. unity_7952D189DF0DE49E34F2

    unity_7952D189DF0DE49E34F2

    Joined:
    Sep 28, 2021
    Posts:
    1
    Hello everyone, I continue with the problem, I have a prefab of a soldier, in a place of the terrain 2 that are injured are instantiated, this prefab has its controller to show its wounded animation, and its script to show a signaling that it is injured. In another part of the field I have this same prefab so that 2 wounded but HEALTHY are instantiated, HOW CAN I CHANGE THE ANIMATION OF THE HEALTHY? . I already added to the soldier's state machine that when HEAL is the animation of BEING UP, but, when starting the game, the healthy soldiers start in wounded and get up to be healthy, I wish that from the moment they play the game they start in WITH ANIMATION HEALTHY AND THE WOUNDED WITH THEIR ANIMATION OF WOUNDED. thanks in advance


     

    Attached Files: