Example #1
0
    void Start()
    {
        fieldMaterial             = forceField.GetComponent <Renderer>().material;
        originalFieldFresnalWidth = fieldMaterial.GetFloat("_FresnelWidth");
        currentHealth             = maxHealth;
        animationManager          = GetComponent <demonAnimationManager>();

        //Disabling damage upon instantiation
        hitBox.enabled = false;
    }
Example #2
0
 void Start()
 {
     foreach (ParticleSystem ps in meteorParticleSystems)
     {
         ps.Stop(true);
     }
     meteorDestroyer.meteorDestroyed += signalMeteorDestroyed;
     demonAnimationManager            = GetComponent <demonAnimationManager>();
     damageManager = GetComponent <demonDamageScript>();
     StartCoroutine("bossFightGameLoop");
 }