IEnumerator SwitchRole() { yield return(new WaitForSeconds(1f)); roleSwitcher.SwitchRole(++RoleSwitcher.currentRole); yield return(null); }
IEnumerator SwitchRole() { yield return(new WaitForSeconds(1f)); healthBG.color = startColor; ammoBG.color = startColor; wageBG.color = startColor; cogBG.color = startColor; roleSwitcher.SwitchRole(++RoleSwitcher.currentRole); yield return(null); }
IEnumerator ChannelBreak() { Debug.Log("waiting for 4 seconds"); yield return(new WaitForSeconds(4f)); Debug.Log("now"); commercialText.enabled = true; commercialText.text = "GOING TO COMMERCIAL BREAK \nIN\n 3..."; yield return(new WaitForSeconds(1f)); commercialText.enabled = false; yield return(new WaitForSeconds(0.5f)); commercialText.enabled = true; commercialText.text = "GOING TO COMMERCIAL BREAK \nIN\n 2..."; yield return(new WaitForSeconds(1f)); commercialText.enabled = false; yield return(new WaitForSeconds(0.5f)); commercialText.enabled = true; commercialText.text = "GOING TO COMMERCIAL BREAK \nIN\n 1..."; yield return(new WaitForSeconds(1f)); commercialText.enabled = false; yield return(new WaitForSeconds(0.5f)); commercialText.enabled = true; commercialText.text = "STARTING NEW ROUND"; yield return(new WaitForSeconds(1f)); roleSwitcher.SwitchRole(++RoleSwitcher.currentRole); yield return(null); }