public static bool AlertGoToPoint(Animal __instance, ref Vector3 point, ref bool sendToPack) { // Attacking point var cancel = false; OnAnimalAttackingPoint?.Invoke(__instance, ref point, ref sendToPack, ref cancel); return !cancel; }
private static bool AlertGoToPoint(Animal __instance, ref Vector3 point, ref bool sendToPack) { // Attacking point bool cancel = false; OnAnimalAttackingPoint?.Invoke(__instance, ref point, ref sendToPack, out cancel); return(!cancel); }