BasicDamageable.DisplayDamage
Declaration#
public void DisplayDamage(float damageAmount)Parameters#
| Name | Description |
|---|---|
| damageAmount | Damage to display |
Description#
Display damage dealt
Usage#
Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
public void ExampleMethod(BasicDamageable target) { // Damage can be displayed from text target.DisplayDamage("MISS");
// Or from a float target.DisplayDamage(12.4f); }
}Declaration#
public void DisplayDamage(string damageMessage)Parameters#
| Name | Description |
|---|---|
| damageMessage | Damage to display |
Description#
Display damage dealt
Usage#
Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
public void ExampleMethod(BasicDamageable target) { // Damage can be displayed from text target.DisplayDamage("MISS");
// Or from a float target.DisplayDamage(12.4f); }
}