Defines the Gun entity type.
Inheritance: WeaponType
コード例 #1
0
ファイル: Gun.cs プロジェクト: CITS4242B2010/project2010
        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 );
            }
        }