private void SetOptionalAnimParameter(int Hash, int value) { if (animatorParams.ContainsKey(Hash)) { SetIntParameter?.Invoke(Hash, value); } }
/// <summary> Set the Parameter Int ID to a value and pass it also to the Animator </summary> public void SetModeStatus(int value) => SetIntParameter?.Invoke(hash_ModeStatus, ModeInt = value);