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