private void ScareCharactersInRange(GameEntity beaconEntity) { foreach (GameEntity characterEntity in BeaconService.GetMobileCharacterEntitiesInRange(beaconEntity)) { characterEntity.isScared = true; characterEntity.ReplaceMoveTarget( GetScaringDestinationPoint(beaconEntity, characterEntity)); } }
private void SummonCharactersInRange(GameEntity beaconEntity) { foreach (GameEntity characterEntity in BeaconService.GetMobileCharacterEntitiesInRange(beaconEntity)) { if (!beaconEntity.BelongsToFactionOf(characterEntity)) { continue; } characterEntity.ReplaceMoveTarget(beaconEntity.position); } }