public void SendArrowAction(GameObject first, GameObject second, PointAbleOption pointType) { if (pointType == PointAbleOption.Card && !second.CompareTag(first.tag)) { var c1 = first.GetComponent <CardModel>().GetCard; var c2 = second.GetComponent <CardModel>().GetCard; Debug.Log("Can attack: " + CardLogic.CanAttack(c1, c2)); } }