Пример #1
0
        public virtual void EjectMagazine()
        {
            MagazineSlide ms = GetComponentInChildren <MagazineSlide>();

            if (ms != null)
            {
                ms.EjectMagazine();
            }
        }
Пример #2
0
        // Eject clips when press Button 1 (B / Y)
        public override void OnButton2Down()
        {
            MagazineSlide ms = GetComponentInChildren <MagazineSlide>();

            if (ms != null)
            {
                ms.EjectMagazine();
            }

            base.OnButton2Down();
        }