Day 141 — Setting up a Reload Animation

private Animator _anim;void Start()
{
_anim = GetComponent<Animator>();
}
void Update()
{
if (Input.GetKeyDown(KeyCode.R))
{
_anim.SetTrigger("Reload");
}
}

--

--

--

Hey and welcome! My name is Connor and my goal here is to put out a daily post for a full year about my game development journey.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to generate an English text description of an image in Node.JS with Deep Learning

Convert a USD Price to EUR in Ruby

Python program to convert Celsius into Fahrenheit

Creating Image, Swapping Image and Creating Collage

Microservices and APIs: Use Customer Journeys to Drive Enterprise Adoption

Why your business needs serverless

What is JAVA EE Annotations ?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Connor Fullarton

Connor Fullarton

Hey and welcome! My name is Connor and my goal here is to put out a daily post for a full year about my game development journey.

More from Medium

Level Design in Unity Part 2: The Walls

Cinematography in Unity — Working With Audio In Timeline

Unity Tutorial — Rim Light shader

Creating a cooldown system in Unity.