using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TimeSwitchBtn: Interactable
{
public bool dark;
public GameObject GameManager;
public override string GetDescription()
{
if (dark)
{
return "Press [E] to skip to night.";
}
else
{
return "Press [E] to skip to day.";
}
}
public override void Interact()
{
if (dark)
{
GameManager.GetComponent().secondsOfDay = 0;
}
else
{
GameManager.GetComponent().secondsOfDay = 30000;
}
}
}