Summary
An object that can be damaged.
- Assembly
- Weaver
.dll - Namespace
- Weaver
.Examples - Implementing Types
graph BT
Type["ITakeDamage"]
class Type type-node
Implementing0["Building"]-.->Type
click Implementing0 "/weaver/api/Weaver.Examples/Building"
Implementing1["Missile"]-.->Type
click Implementing1 "/weaver/api/Weaver.Examples/Missile"
Syntax
public interface ITakeDamage
Properties
Name | Value | Summary |
---|---|---|
IsWorthPoints | bool |
Indicates whether this object will increase the score of whoever destroys it.
|
transform | Transform |
The
UnityEngine.Transform of this object. |
Methods
Name | Value | Summary |
---|---|---|
OnTakeDamage |
void |
Notifies this object that it has been damaged.
|