コード例 #1
0
ファイル: Enemy.cs プロジェクト: kakawaGG/TowerDefence
    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 + " начал путь");
    }