AnimatedTrigger
A class in Root.Township, Alta.Networking.Animation.
A networked animator trigger: the server sets it and clients fire the same trigger on their animator.
- Listed in Networking and servers
- Inherits or implements
AnimatedValue<bool>
Constructors
| Member | What it is |
|---|---|
AnimatedTrigger(string name) | Creates an AnimatedTrigger from name. |
Properties
| Member | What it is |
|---|---|
override bool Value { get; set; } | Setting it to a new value marks it changed, flags the animator and fires the trigger. |
Methods
| Member | What it is |
|---|---|
void Force() | Sets the trigger again even if it was already set. |
override void Serialize(Stream stream, bool isWriteFull) | Writes or reads the trigger in delta updates only (never in full syncs) and counts down the changed counter. |
void UpdateChanged() | Counts down the changed counter and tells the animator once it reaches zero. |
protected override void Serialize(Stream stream) | Writes or reads the trigger in delta updates only (never in full syncs) and counts down the changed counter. |
protected override void Update() | Fires the animator trigger when set; clients clear it straight after. |
Used in
Members of other types that take, return or hold a AnimatedTrigger: