Last updated: Sep 7, 2022

Introduction

The Knife Attack Behaviour component is the State Machine Behavior that helps us make the character’s knife mesh visible or invisible at different points during a state. Usually this is placed on the “Knife Attack” state.

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

Fields

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

Weapon Behaviour. The player character's equipped weapon.

Time Linker. The equipped Weapon Behaviour's TimeLinker.

Knife Object. The character's knife GameObject.