Exemplo n.º 1
0
    public override void Enter()
    {
        _gridPosition = _creator.GetGridPosition();
        _pathList     = new List <Script_Node> ();

        if (_manager.GetEntityOfType <Script_FallenStar> () != null)
        {
            FindPath(_gridPosition, _manager.GetEntityLocation <Script_FallenStar> ());
            _creator.SetPath(_pathList);

            if (FoundPath())
            {
                _creator.SetPathBeginning(_pathList [0]);
            }
        }
    }