public ParticleSystemContainer GenerateSpecialEffectAtCharacter(AbstractBattleUnit unit, ProtoParticleSystem particleSystem, HardpointLocation locationToHit, Action afterAnimationIsFinishedAction = null) { return(PlaceParticleSystem(particleSystem, unit.CorrespondingPrefab.Hardpoints.FromHardpointLocation(locationToHit), afterAnimationIsFinishedAction )); }
public Transform FromHardpointLocation(HardpointLocation location) { if (location == HardpointLocation.CENTER) { return(Center); } if (location == HardpointLocation.LEFT) { return(LeftOrMuzzle); } if (location == HardpointLocation.BOTTOM) { return(Bottom); } return(Center); }