void chargedAnimation() { GameObject chargedBeam = GameObject.Find("chargedBeam"); ParticleSystem animation = chargedBeam.GetComponent<ParticleSystem>(); animation.Play(); }