// Use this for initialization void Start() { sfxPlayer = GetComponent <PlayerSoundTriggers>(); if (!DisableVisionFeatures) { UpdateVisibility(); } }
// Use this for initialization void Start() { //rg = GetComponent<Rigidbody2D>(); rend = GetComponent <Renderer>(); c = rend.material.color; immunity = false; //lifePoints = 3; recoveryTime = 3; sfxPlayer = GetComponent <PlayerSoundTriggers>(); lifePoints = HitPoints; }