private static void DropBarricade(BarricadeRegion region, BarricadeData data, ref Transform result, ref uint instanceID) { if (result == null) { return; } var drop = region.drops.LastOrDefault(); if (drop?.instanceID == instanceID) { OnBarricadeDeployed?.Invoke(data, drop); } }
private static void DropBarricade(BarricadeRegion region, Barricade barricade, Vector3 point, Quaternion rotation, ulong owner, ulong group, BarricadeData data, ref Transform result, ref uint instanceID) { if (result != null) { BarricadeDrop drop = region.drops.LastOrDefault(); if (drop?.instanceID == instanceID) { OnBarricadeDeployed?.Invoke(data, drop); } } }