void CalculateTimeForWhite() { // adding seconds secondsForWhite -= Time.deltaTime; // adding minutes if (Mathf.Floor (secondsForWhite) < 0) { secondsForWhite = 60; minutesForWhite--; } if (minutesForWhite < 0) { minutesForWhite = 59; hoursForWhite--; } if (hoursForWhite < 0) { clockState = StartClockState.WhiteFlags; } }
void ShowThatBlackHasFlagged() { TimeBlackText.color = Color.red; TimeBlackText.text = "Time"; gameManager.BlackFlags (); clockState = StartClockState.Wait; }
public void StartClock(StartClockState clockState) { this.clockState = clockState; }
void ShowThatWhiteHasFlagged() { TimeWhiteText.color = Color.red; TimeWhiteText.text = "Time"; gameManager.WhiteFlags (); clockState = StartClockState.Wait; }
void CalculateTimeForBlack() { // adding seconds secondsForBlack -= Time.deltaTime; // adding minutes if (Mathf.Floor (secondsForBlack) < 0) { secondsForBlack = 60; minutesForBlack--; } if (minutesForBlack < 0) { minutesForBlack = 59; hoursForBlack--; } if (hoursForBlack < 0) { clockState = StartClockState.BlackFlags; } }