TopDown Engine  v3.6
MoreMountains.TopDownEngine.WeaponModelEnabler Class Reference

This class is responsible for enabling/disabling the visual representation of weapons, if they're separated from the actual weapon object More...

Inheritance diagram for MoreMountains.TopDownEngine.WeaponModelEnabler:
MoreMountains.TopDownEngine.TopDownMonoBehaviour MoreMountains.Tools.MMMonoBehaviour

Public Attributes

WeaponModelBindings[] Bindings
 a list of model bindings. A binding is made of a gameobject, already present on the character, that will act as the visual representation of the weapon, and a name, that has to match the WeaponAnimationID of the actual Weapon More...
 
CharacterHandleWeapon HandleWeapon
 

Protected Member Functions

virtual void Awake ()
 On Awake we grab our CharacterHandleWeapon component More...
 
virtual void Update ()
 On Update, we enable/disable bound gameobjects based on their name More...
 

Detailed Description

This class is responsible for enabling/disabling the visual representation of weapons, if they're separated from the actual weapon object

Member Function Documentation

◆ Awake()

virtual void MoreMountains.TopDownEngine.WeaponModelEnabler.Awake ( )
protectedvirtual

On Awake we grab our CharacterHandleWeapon component

◆ Update()

virtual void MoreMountains.TopDownEngine.WeaponModelEnabler.Update ( )
protectedvirtual

On Update, we enable/disable bound gameobjects based on their name

Member Data Documentation

◆ Bindings

WeaponModelBindings [] MoreMountains.TopDownEngine.WeaponModelEnabler.Bindings

a list of model bindings. A binding is made of a gameobject, already present on the character, that will act as the visual representation of the weapon, and a name, that has to match the WeaponAnimationID of the actual Weapon

◆ HandleWeapon

CharacterHandleWeapon MoreMountains.TopDownEngine.WeaponModelEnabler.HandleWeapon

The documentation for this class was generated from the following file: