public static void PopulateSnapshotWithWeaponBoxContainerEntities(ref Dictionary <EntityId, Entity> snapshotEntities, ref int nextavailableId) { for (var i = 0; i < 10; i++) { var Weaponcoors = new Vector3((Random.Range(-1f, 1f) * 0.5f) * Random.Range(-200f, 200f), -5f, (Random.Range(-1f, 1f) * 0.5f) * Random.Range(-200f, 200f)); snapshotEntities.Add(new EntityId(nextavailableId++), EntityTemplateFactory.CreateWeaponBoxContainerTemplate(Weaponcoors)); } }