top of page

Affect Manager

The Affect Manager is in charge of controlling effects that can be given to the player, it is fairly simple compared to the other manager scripts shown on the website so far. 

It can do the following:

​

  • Set the Current Effect

    • ends the previous effect and sets a new effect​

  • End the current effect

    • forcibly ends the current effect that is active​

  • Start an Effect

    • starts the currently set effect ​

  • Adjust the Effect Time

    • the effect time is actually handled by the effects own coroutine, this function is mainly used for updating UI elements​

​

Affect Manager Code

AffectManagerVariables.png
AffectManagerEnableDisableCode.png

Collectable Code

Honey Collectable Code

Nectar Collectable Code

Smoker Collectable Code

bottom of page