private void ClientStateChanged(object sender, LeagueEvent e) { string eventType = e.Data.ToString(); Logging.Verbose($"New League State: {eventType}"); switch (eventType) { case "ChampSelect": ChampSelectStart?.Invoke(this, EventArgs.Empty); break; case "InProgress": GameStart?.Invoke(this, EventArgs.Empty); break; default: break; } if (!eventType.Equals("InProgress") && BroadcastHubController.CurrentLeagueState.Equals("InProgress")) { GameStop?.Invoke(this, EventArgs.Empty); } if (!eventType.Equals("ChampSelect") && BroadcastHubController.CurrentLeagueState.Equals("ChampSelect")) { ChampSelectStop?.Invoke(this, EventArgs.Empty); } BroadcastHubController.CurrentLeagueState = eventType; }
IEnumerator GameFadein() { //time.enabled = false; GameStop.InputStop(6.5f); GameClearFadein.GameClearFadein(); yield return(new WaitForSeconds(0.5f)); Movein.GameClear_IN(); yield return(new WaitForSeconds(3.0f)); GameClear.GameClearFadein(); yield return(new WaitForSeconds(3.0f)); Debug.Log("きた"); Blackfade.black_fadein2(); yield return(new WaitForSeconds(3.0f)); SceneManager.LoadScene("Score"); }
void Update() { if (!stopTime) { return; } //timeが0以上なら-1秒してそれを表示 if (hiscore_manager.Instance.Time >= 1) { hiscore_manager.Instance.Time -= Time.deltaTime; text.text = "" + Mathf.Floor(hiscore_manager.Instance.Time); } //timeLeftが1以下なら else { //playerの入力を切る(5.0f) GameStop.InputStop(5.0f); //GameOver_Fadeのコルーチンを開始 StartCoroutine(GameOver_Fade()); } }