Пример #1
0
 public override void Disable()
 {
     base.Disable();
     _unit.Stop();
     StopAllCoroutines();
     owner.anim.SetBool("Moving", false);
 }
Пример #2
0
        /// <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();
        }