Weapon Class

Summary

Holds various animations relating to the use of a weapon.
Assembly
Animancer.dll
Namespace
Animancer.Samples.StateMachines
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["Weapon"] class Type type-node

Syntax

[AddComponentMenu(Strings.SamplesMenuPrefix + "Weapons - Weapon")]
[AnimancerHelpUrl(typeof(Weapon))]
public class Weapon : MonoBehaviour

Remarks

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.

Sample: Weapons

Attributes

Type Description
AddComponentMenu
AnimancerHelpUrlAttribute [Assert-Conditional] A UnityEngine.HelpURLAttribute which points to Animancer's documentation.

Properties