ResetTimer

Description

Reset the timer for a specific button.

Declaration

public static void ResetTimer(TimerButtonIDs button)

Parameters

NameDescription

button

The ID of the button from Settings Window.

Return

TimeSpan - the remaining time for the current button

Example

Test.cs
public class Test : MonoBehaviour
{
    public void ResetTimer()
    {
        Gley.DailyRewards.API.TimerButton.ResetTimer(TimerButtonIDs.RewardButton);
    }
}

Last updated