private void AutoSlashDirections(CreatureStates Creature, Raycast Raycast, Vector3 Front, Vector3 OtherFront, Vector3 Direction, Vector3 OtherDirection) { if (Creature.Front == Front || Creature.Front == OtherFront) { Raycast.SearchForMultipleDirections(new Vector3[] {Direction,OtherDirection}, Creature.Storey); if (Raycast.TargetMultipleCreature.Count == 1) { Raycast.TargetMultipleCreature[0].Health -= Creature.Damage; } if (Raycast.TargetMultipleCreature.Count == 2) { CreatureStates First = Raycast.TargetMultipleCreature[0]; CreatureStates Second = Raycast.TargetMultipleCreature[1]; CompareCreaturesHealth(First,Second).Health -= Creature.Damage; } } }