protected override void UpdateAmmoMesh() { int num = 8 - this.AmmoCount; foreach (GameEntity child in this.GameEntity.GetChildren()) { for (int metaMeshIndex = 0; metaMeshIndex < child.MultiMeshComponentCount; ++metaMeshIndex) { MetaMesh metaMesh = child.GetMetaMesh(metaMeshIndex); for (int meshIndex = 0; meshIndex < metaMesh.MeshCount; ++meshIndex) { metaMesh.GetMeshAtIndex(meshIndex).SetVectorArgument(0.0f, (float)num, 0.0f, 0.0f); } } } }
protected virtual void UpdateAmmoMesh() { int num = 20 - this.AmmoCount; if (!((NativeObject)this.GameEntity != (NativeObject)null)) { return; } for (int metaMeshIndex = 0; metaMeshIndex < this.GameEntity.MultiMeshComponentCount; ++metaMeshIndex) { MetaMesh metaMesh = this.GameEntity.GetMetaMesh(metaMeshIndex); for (int meshIndex = 0; meshIndex < metaMesh.MeshCount; ++meshIndex) { metaMesh.GetMeshAtIndex(meshIndex).SetVectorArgument(0.0f, (float)num, 0.0f, 0.0f); } } }