public void SelectTarget() { allowedTarget = skill.AllowedTarget(target, character); if (allowedTarget) { skill.Target = target; Debug.Log("tar: " + target + " from: " + skill.Owner.GetComponent <BaseCharacter>().CharacterName); } else { Debug.Log("you have selected an invalid target"); } }