Beispiel #1
0
    private void Start()
    {
        IdentifyHexes();
        AviablePosition hero           = FindObjectOfType <AviablePosition>();
        IAdjacentFinder adjacentFinder = new PositionsForFlying();
        HexBattale      startingHex    = hero.GetComponentInParent <HexBattale>();

        startingHex.DefineMeAsStartingHex();
        hero.GetAvailablePositions(hero.GetComponentInParent <HexBattale>(), 4, adjacentFinder);
    }
Beispiel #2
0
    private void Start()
    {
        IdentifyHexes();
        AvailablePosition hero       = FindObjectOfType <AvailablePosition>();
        IAdjacentFinder   adjFinder  = new PositionsForFlying();
        BattleHex         startigHex = hero.GetComponentInParent <BattleHex>();
        int stepsLimit = BattleController.currentAtacker.velocity;

        startigHex.DefineAsStartingHex();
        hero.GetAvailablePositions(hero.GetComponentInParent <BattleHex>(), stepsLimit, adjFinder);
    }
Beispiel #3
0
    public override IAdjacentFinder GetTypeOfHero()
    {
        IAdjacentFinder adjFinder = new PositionsForFlying();

        return(adjFinder);
    }