Add Time on pickup

Hey guys,

When the player picks up a certain object I want it to add more time to the countdown timer.

Could anyone help me out please? I am using C#.


You should make two different scripts. One for the timer itself, and another separate script for the pickup. Have the pickup reference the main timer component and just add the time to the main timer component OnTriggerEnter().