public void ReloadGCDB(GameContentDataBase gcdb) { try { if (abilityPAID != -1) { var temp = gcdb.gameParticleAnimations.Find(PA => PA.particleAnimationID == abilityPAID); if (temp != null) { PAanim = temp.Clone(); } } else { PAanim = null; } } catch { } try { executeSoundEffect = Game1.contentManager.Load <SoundEffect>(soundEffectLoc); } catch (Exception e) { } }
public void AddParticleAnimation(ParticleAnimation pa) { pa.particleAnimationID = particleAnimationIDLatest; particleAnimationIDLatest++; gameParticleAnimations.Add(pa); }