State handles selecting Tiles on the Hex Grid. Allows selection of any Tile Will only transition to ActionSelectionState if the current Tile has a TileAgent of the currently acting Battle Team
Inheritance: BaseCombatState
Exemplo n.º 1
0
    void OnEnable()
    {
        tileSelectionState   = new TileSelectionState(target as TileMap);
        tilePainterState     = new TilePainterState();
        tileRaiserState      = new TileRaiserState(target as TileMap);
        tileMaterialState    = new TileMaterialState();
        tileRotateState      = new TileRotateState();
        tilePlaceObjectState = new TilePlaceObjectState(target as TileMap);

        currentState = tileSelectionState;

        materialIcon = FindAssets.GetMaterialIcon();
        selectIcon   = Resources.Load("Icons/select_icon") as Texture;
        rotateIcon   = Resources.Load("Icons/rotate_icon") as Texture;
        placeIcon    = Resources.Load("Icons/place_icon") as Texture;
        raiseIcon    = Resources.Load("Icons/raise_icon") as Texture;
        paintIcon    = Resources.Load("Icons/paint_icon") as Texture;
    }
Exemplo n.º 2
0
 public void ChangeTileSelectionState(TileSelectionState newState)
 {
     selectedState = newState;
     ChangeSprite();
 }