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)); }