public override void OnAddedToContainer(MyComponentContainer container) { base.OnAddedToContainer(container); m_rifleGun = Entity as MyAutomaticRifleGun; }
public override void OnAddedToContainer() { base.OnAddedToContainer(); m_rifleGun = Container.Entity as MyAutomaticRifleGun; }
public override void OnAddedToContainer() { base.OnAddedToContainer(); this.m_rifleGun = base.Container.Entity as MyAutomaticRifleGun; }