Exemple #1
0
    /**
     *
     * IEnumerator Wait4Logout() {
     *      int level = Application.loadedLevel;
     *      while (Application.loadedLevel == level) {
     *              yield return null;
     *      }
     *      ResultText result = ResultText.Instance;
     *      result.Show (isWinner, isRivalExit);
     *      History history = History.Instance;
     *      Debug.Log (history.Dump ());
     * }
     *
     */

    IEnumerator Wait4Result()
    {
        yield return(new WaitForSeconds(0.2f));

        ResultText result = ResultText.Instance;
        UserInfo   user   = null;

        if (isWinner)
        {
            user = me;
        }
        else
        {
            if (first.IsWon)
            {
                user = first;
            }
            if (last.IsWon)
            {
                user = last;
            }
        }
        result.Show(user, isRivalExit);
        History history = History.Instance;

        Debug.Log(history.Dump());
    }