RemoveTime

Description

Subtract the amount of time from the specified button

Declaration

public static void RemoveTime(TimerButtonIDs button, TimeSpan timeToRemove)

Parameters

NameDescription

button

The ID of the button from Settings Window.

timeToRemove

TimeSpan to remove from the button

Example

Test.cs
public class Test : MonoBehaviour
{
    public void RemoveTime()
    {
        Gley.DailyRewards.API.TimerButton.RemoveTime(TimerButtonIDs.RewardButton, new TimeSpan(0, 1, 0));
    }
}

Last updated