public void loadModel(AssetProvider a) { this.a = a; mi = a.createInstance(getModelString()); animations = new AnimationController(mi); loadWeaponModels(); updateColors(); }
public void loadModel(AssetProvider a, Player p) { this.parent = p; this.a = a; hasParticles = false; if (!weaponID.equals("")) { mi = a.createInstance("core/assets/models/weapons/" + weaponID + ".g3dj"); } /* if (weaponID.contains("poison")) { magicParticles = a.poisonPool.obtain(); magicParticles.init(); magicParticles.start(); a.particleSystem.add(magicParticles); hasParticles = true; } else */ if (weaponID.contains("spell")) { magicParticles = a.firePool.obtain(); magicParticles.init(); magicParticles.start(); a.particleSystem.add(magicParticles); hasParticles = true; } }