AddTime

Description

Add the amount of time to the specified button.

Declaration

 public static void AddTime(TimerButtonIDs button, TimeSpan timeToAdd)

Parameters

NameDescription

button

The ID of the button from Settings Window.

timeToAdd

TimeSpan to add to the button

Example

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

Last updated