Defines the Gun entity type.
Наследование: WeaponType
Пример #1
0
        void OnFire( GunType.GunMode typeMode )
        {
            //animation
            SetForceAnimation( typeMode.FireAnimationName, true );

            //parent unit animation
            if( !string.IsNullOrEmpty( typeMode.FireUnitAnimationName ) )
            {
                Unit parentUnit = GetParentUnit();
                if( parentUnit != null )
                    parentUnit.SetForceAnimation( typeMode.FireUnitAnimationName, true );
            }
        }