public override void Disable() { base.Disable(); _unit.Stop(); StopAllCoroutines(); owner.anim.SetBool("Moving", false); }
/// <summary> /// Stops the unit from wandering. /// </summary> /// <param name="unit">The unit.</param> public static void StopWander(this IUnitFacade unit) { _clients.Remove(unit.gameObject); if (_clients.Count == 0) { _handler.Stop(); _handler = null; } unit.Stop(); }