// Use this for initialization void Start() { newTimer = GameObject.FindGameObjectWithTag("Controller").GetComponent <NewTimer>(); if (interval < 1.0f) { // Make sure the interval isn't 0, or we'll be constantly playing the sound! Debug.LogError("Interval base must be at least 1.0!"); disableScript = true; } }
public MainPage() { this.InitializeComponent(); workTimer.Interval = new TimeSpan(0, 0, 0, 1, 0); workTimer.Tick += WorkTimer_Tick; restTimer.Interval = new TimeSpan(0, 0, 0, 1, 0); restTimer.Tick += RestTimer_Tick; restMinuteBlock.Visibility = Visibility.Collapsed; restSecondBlock.Visibility = Visibility.Collapsed; NewTimer.TimerChooserComboFiller(cbTimerChooser); }
void Start() { partyOn = false; newTimer = GameObject.FindGameObjectWithTag("Controller").GetComponent <NewTimer>(); }