Feel  5.1
The best way to improve your game's feel and make it extra juicy
MoreMountains.Feel.BarbarianEnemy Class Reference

A simple class used to handle enemies in Feel's Barbarian demo scene More...

Inheritance diagram for MoreMountains.Feel.BarbarianEnemy:

Public Member Functions

virtual void TakeDamage (int damage)
 Applies damage to this character, if not in cooldown More...
 

Public Attributes

MMFeedbacks DamageFeedback
 a feedback to play when getting damage More...
 
float DamageCooldown = 1f
 a cooldown, in seconds, during which the character can't be damaged More...
 

Protected Attributes

float _lastDamageTakenAt = -10f
 

Detailed Description

A simple class used to handle enemies in Feel's Barbarian demo scene

Member Function Documentation

◆ TakeDamage()

virtual void MoreMountains.Feel.BarbarianEnemy.TakeDamage ( int  damage)
virtual

Applies damage to this character, if not in cooldown

Parameters
damage

Member Data Documentation

◆ _lastDamageTakenAt

float MoreMountains.Feel.BarbarianEnemy._lastDamageTakenAt = -10f
protected

◆ DamageCooldown

float MoreMountains.Feel.BarbarianEnemy.DamageCooldown = 1f

a cooldown, in seconds, during which the character can't be damaged

◆ DamageFeedback

MMFeedbacks MoreMountains.Feel.BarbarianEnemy.DamageFeedback

a feedback to play when getting damage


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