private IEnumerator HandleDisconnect() { if (_body) { _body.Hide(); } yield return(new WaitForSeconds(2)); m_dialogController.Clear(); }
private IEnumerator HandleDisconnectAction(IAction actionRpc) { yield return(null); m_rpc.Perceive(new Name[] { EventHelper.ActionEnd(m_rpc.CharacterName.ToString(), actionRpc.Name.ToString(), IATConsts.PLAYER) }); AddEvent(EventHelper.PropertyChange(string.Format(IATConsts.DIALOGUE_STATE_PROPERTY, IATConsts.PLAYER), "Disconnected", "SELF").ToString()); if (_body) { _body.Hide(); } yield return(new WaitForSeconds(0.1f)); GameObject.Destroy(GameObject.FindGameObjectWithTag("Score")); _finalScore.SetActive(true); GameObject.FindGameObjectWithTag("FinalScoreText").GetComponent <FinalScoreScript>().FinalScore(RPC.Mood); }
private IEnumerator HandleDisconnectAction(IAction actionRpc) { yield return(null); m_rpc.Perceive(new Name[] { EventHelper.ActionEnd(m_rpc.CharacterName.ToString(), actionRpc.Name.ToString(), IATConsts.PLAYER) }); if (_body) { _body.Hide(); } yield return(new WaitForSeconds(2)); GameObject.Destroy(GameObject.FindGameObjectWithTag("Score")); if (m_scenarioData.IAT.ScenarioName.Contains("PJ")) { _finalScore.SetActive(true); GameObject.FindGameObjectWithTag("FinalScoreText").GetComponent <FinalScoreScript>().FinalScore(RPC.Mood); } }