public override void AddBonusEffects() { //TODO: Create string variables for sortingLayers primaryShockParticles = Instantiate(shockParticles, voltPrimaryHand.position, voltPrimaryHand.rotation); primaryShockParticles.GetComponent <Renderer>().sortingLayerName = SortingLayers.DetermineParticleLayer(true, playerStats); secondaryShockParticles = Instantiate(shockParticles, voltSecondaryHand.position, voltSecondaryHand.rotation); secondaryShockParticles.GetComponent <Renderer>().sortingLayerName = SortingLayers.DetermineParticleLayer(false, playerStats); Debug.Log("VoltModernRage effects added."); }
//used via animation event public void FuryOfTheStorm_Energize(FuryOfTheStormAttack attackNumber) { int index; index = (int)attackNumber; if (DeterminePrimarySpawnPoint(attackNumber)) { actualParticles[index] = Instantiate(particles[index], primaryParticleSpawnPoint.position, primaryParticleSpawnPoint.rotation); actualParticles[index].GetComponent <Renderer>().sortingLayerName = SortingLayers.DetermineParticleLayer(true, playerStats); } else { actualParticles[index] = Instantiate(particles[index], secondaryParticleSpawnPoint.position, secondaryParticleSpawnPoint.rotation); actualParticles[index].GetComponent <Renderer>().sortingLayerName = SortingLayers.DetermineParticleLayer(true, playerStats); } if (attackNumber == FuryOfTheStormAttack.FifthFuryAttack) { SpecialParticlesOn(true); } }