public void UpdateButtons(Point pos)
    {
        adjacentUnit = DirectionsExtensions.GetAdjacentPlayer(controller.board, pos);

        if (adjacentUnit == null)
        {
            talkButton.gameObject.SetActive(false);
            comboUI.gameObject.SetActive(false);

            return;
        }

        UnitID adjacentID = adjacentUnit.GetComponent <UnitStats>().ID;

        if (!controller.currentUnit.talked &&
            BattleDialogue.StillHasDialogue(currentUnit, adjacentID) &&
            !controller.talked)
        {
            talkButton.gameObject.SetActive(true);
        }

        comboUI.gameObject.SetActive(true);
        UnitPair pair = RelationshipManager.GetRelationshipPair(currentUnit, adjacentID);

        comboUI.SetWithoutObj(GameInformation.instance.GetComboInfo(pair));
    }
    public static bool StillHasDialogue(UnitID a, UnitID b)
    {
        UnitPair pair = RelationshipManager.GetRelationshipPair(a, b);

        switch (pair)
        {
        case UnitPair.MINKEEVHALL:
            return(vhallMinkeeDialogueBattle.Count > 0);

        case UnitPair.PHYNNEMINKEE:
            return(minkeePhynneDialogueBattle.Count > 0);

        case UnitPair.VHALLPHYNNE:
            return(phynneVhallDialogueBattle.Count > 0);
        }

        return(false);
    }
    public static List <DialogueLine> GetBattleDialogueBetween(UnitID a, UnitID b)
    {
        UnitPair pair = RelationshipManager.GetRelationshipPair(a, b);

        switch (pair)
        {
        case UnitPair.MINKEEVHALL:
            return(GetVhallMinkee());

        case UnitPair.PHYNNEMINKEE:
            return(GetMinkeePhynne());

        case UnitPair.VHALLPHYNNE:
            return(GetPhynneVhall());
        }

        Debug.LogError("Couldn't find battle dialogue between " + a + " and " + b);
        return(null);
    }
    public static List <DialogueLine> GetDialogueBetween(UnitID a, UnitID b)
    {
        RelationshipRank rank = RelationshipManager.GetRelationshipBetween(a, b).GetNextRank();
        UnitPair         pair = RelationshipManager.GetRelationshipPair(a, b);

        switch (pair)
        {
        case UnitPair.MINKEEVHALL:
            return(vhallMinkeeDialogue[rank]);

        case UnitPair.PHYNNEMINKEE:
            return(minkeePhynneDialogue[rank]);

        case UnitPair.VHALLPHYNNE:
            return(phynneVhallDialogue[rank]);
        }

        Debug.LogError("Couldn't find relationship between " + a + " and " + b);
        return(null);
    }