/// <summary> /// Set unit position /// </summary> /// <param name="coordinate">Coordinate on field</param> /// <param name="position">Position on field</param> /// <param name="fast">Set without animation</param> public void SetPosition(Vector2Int coordinate, Vector3 position, bool fast = false) { #if DEV Logger.Info(string.Format("Unit #{0} from team {1} moved to {2}", _unitIndex, _teamIndex, coordinate)); #endif _coordinate = coordinate; _animator.MoveTo(position, fast); }