A class in Root.Township, Alta.Networking.Animation.
Small helper that exposes one named bool of a NetworkAnimator as a Set method, so a UnityEvent can drive a networked animator bool.
Constructors
| Member | What it is |
|---|
AnimatedBoolAccess() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
| Member | What it is |
|---|
private AnimatedBool animatedBool | The looked-up networked bool. |
private NetworkAnimator animator | The network animator holding the bool. |
private string boolName | Name of the animator bool to drive. |
Methods
| Member | What it is |
|---|
void Set(bool value) | Sets the networked animator bool to the given value. |
1 private and internal method
| Member | What it is |
|---|
private void Awake() | Makes sure the animator is awake and looks up the bool by name. |