Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Question How do enable a animation when a number goes below its maximum?

Discussion in 'Animation' started by Lieusifer, Jun 4, 2022.

  1. Lieusifer

    Lieusifer

    Joined:
    Nov 19, 2021
    Posts:
    1
    so I'm trying to make it so my gun only reloads when the ammo is lower than its max such as if my ammo is 31(max) it doesn't enable the animation but when the number is 30 or lower it enable's the animation so when you click the reload key it triggers the reload animation.