// Start is called before the first frame update void Start() { powerupsScript = transform.parent.GetComponent <PlayerPowerupEffects>(); powerupImplementations = transform.parent.GetComponent <PowerupImplementations>(); animator = transform.GetComponent <Animator>(); audioSource = GetComponent <AudioSource>(); }
// Start is called before the first frame update void Start() { currentFadeStamina = noFadeStamina; currentFadeHealth = minHealthPowerupAlpha; currentFadeShield = noFadeShieldValue; bodyRenderer = GetComponent <SpriteRenderer>(); headRenderer = transform.Find("Head").GetComponent <SpriteRenderer>(); SetSinglePowerupMaterial(baseMaterial); powerupImpl = GetComponent <PowerupImplementations>(); //currentMaterial.SetFloat("_TintValue", currentFadeHealth); }