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 );
            }
        }