Last updated: Aug 31, 2022

Introduction

The Bolt Behaviour component is the State Machine Behavior that allows us to play the bolt action animation on the player’s equipped weapon’s Animator.

You can find the Bolt Behaviour at this path: Assets\Infima Games\Low Poly Animated - Modern Guns\Demo\Code\Animation\BoltBehaviour.cs

Functionality

Starts playing the “Bolt Action” state in the player’s equipped weapon’s Animator at the same time as this behavior’s state starts. That basically helps us time the two animations and get everything super well synchronized. Happy cool stuff!

Fields

Player Character. This is a simple reference to the player character in the game.

Player Inventory Behavior. This is a simple reference to the player character’s inventory.