public void SetAnimation(ShopaholicAnimations animation, bool stopOthers = false) { if (stopOthers) { StopAnimations(); } _animator.SetBool(animation.ToString(), true); return; }
public bool IsState(ShopaholicAnimations animation) { return(_animator.GetBool(animation.ToString())); }