private IEnumerator StartGame(FightInfo fightInfo) { StatesUtility.ClearOptionLayer(); yield return(ApplyFightInfos(fightInfo)); yield return(m_ui.GotoVersusAnim()); yield return((object)new WaitForTime(2f)); StateLayer defaultLayer = StateManager.GetDefaultLayer(); StateContext currentState = defaultLayer.GetChildState(); if (currentState != null) { defaultLayer.ClearChildState(0); while ((int)currentState.get_loadState() == 8) { yield return(null); } } FightState fightState = new FightState(fightInfo); defaultLayer.SetChildState(fightState, 0); VersusState versusState = new VersusState(m_ui, fightState); this.SetChildState(versusState, 0); }