Rest.OnEnable C# (CSharp) Method

OnEnable() public method

public OnEnable ( ) : void
return void
    void OnEnable()
    {
        startTime = Time.time;
        duration = (float)menu.currentRestDuration;
    }