Weapon Class

Summary

Holds various animations relating to the use of a weapon. In a real game, this class might have other details like damage, damage type, weapon category, etc. It could also inherit from a base Item class for things like weight, cost, and description.
Assembly
Animancer.dll
Namespace
Animancer.Examples.StateMachines
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["Weapon"] class Type type-node

Syntax

[AddComponentMenu(Strings.ExamplesMenuPrefix + "Weapons - Weapon")]
[HelpURL(Strings.DocsURLs.ExampleAPIDocumentation + nameof(StateMachines) + "/" + nameof(Weapon))]
public sealed class Weapon : MonoBehaviour

Examples

Weapons

Attributes

Type Description
AddComponentMenu
HelpURLAttribute

Properties