public static void SetTarget(IKOSTargetable val) { if (val.Target != null) { SetTarget(val.Target); } else { throw new Exception("Error on targeting " + val); } }