Example #1
0
    public virtual void StartMoving(EnemyPath path)
    {
        _path = path;
        transform.DOPath(_path.GetPathAsVectorMassive(), _moveSpeed, PathType.Linear)
        .SetEase(Ease.Linear)
        .SetLookAt(MICRO_TIME_TO_ROTATE)
        .OnComplete(() =>
        {
            CompletePath();
        });

        Debug.Log(gameObject.name + " начал путь");
    }