示例#1
0
            public static bool AlertDirection(Animal __instance, ref Vector3 newDirection, ref bool sendToPack)
            {
                // Fleeing from given direction
                var cancel = false;

                OnAnimalFleeing?.Invoke(__instance, ref newDirection, ref sendToPack, ref cancel);

                return !cancel;
            }
示例#2
0
            private static bool AlertDirection(Animal __instance, ref Vector3 newDirection, ref bool sendToPack)
            {
                // Fleeing from given direction
                bool cancel = false;

                OnAnimalFleeing?.Invoke(__instance, ref newDirection, ref sendToPack, out cancel);

                return(!cancel);
            }