Esempio n. 1
0
    public override bool Reset(Enemy enemy)
    {
        if (enemy == null) return false;
        _myEnemy = enemy;

        _path = EnemyPathfinder.FindPath(_myEnemy, _target);
        if (_path == null) return false;

        //_path.DebugPrint();
        _curNode = 0;
        _path.NormalizeConnections(new Vector2(1, 1));
        MoveToNode(0);
        return true;
    }