Last updated: Jan 19, 2023

Introduction

The Character script takes care of the most important functions of the asset. It contains a bit of everything really and basically ties everything together.

You can find the Character script ****at this path: Assets\Infima Games\Low Poly Animated - Modern Guns\Demo\Code\Characters\Character.cs

Fields Serialized

Inventory. Reference to the player character’s InventoryBehaviour component.

Damp Time Locomotion. Determines how smoothly the locomotion blend-space is played.

Character Animator. Reference to the player character’s Animator component.

Fields

Aiming. True if the character is aiming.

Running. True if the character is running.

Holstered. True if the character has its weapon holstered.

Last Shot Time. Last Time.time at which we shot.

Equipped Weapon. The currently equipped weapon.

Crouching. True if the character is crouching.

Lowered. True if the character is lowering its weapon.

Axis Movement. Movement Axis Values.

Holding Button Aim. True if the player is holding the aiming button.

Holding Button Run. True if the player is holding the running button.

Holding Button Fire. True if the player is holding the firing button.