void Start() { fieldMaterial = forceField.GetComponent <Renderer>().material; originalFieldFresnalWidth = fieldMaterial.GetFloat("_FresnelWidth"); currentHealth = maxHealth; animationManager = GetComponent <demonAnimationManager>(); //Disabling damage upon instantiation hitBox.enabled = false; }
void Start() { foreach (ParticleSystem ps in meteorParticleSystems) { ps.Stop(true); } meteorDestroyer.meteorDestroyed += signalMeteorDestroyed; demonAnimationManager = GetComponent <demonAnimationManager>(); damageManager = GetComponent <demonDamageScript>(); StartCoroutine("bossFightGameLoop"); }