Exemple #1
0
    /// <summary>
    /// リザルトを閉じる
    /// </summary>
    //[PunRPC]
    public void ViewClose()
    {
        fadeImage.CloseEvent();
        for (int i = 0; i < 3; i++)
        {
            Player1UI.textsEevaluate[i].Invoke("TextDelete", 1);
            Player2UI.textsEevaluate[i].Invoke("TextDelete", 1);
            Player1UI.bodyImageResult[i].Invoke("ImageDelete", 1);
            Player2UI.bodyImageResult[i].Invoke("ImageDelete", 1);
        }
        Player1UI.hpText.Invoke("TextDelete", 1);
        Player2UI.hpText.Invoke("TextDelete", 1);

        uiArrow.SetBool("isStart", false);


        if (gameData.GetNowPhase == GameCommonData.Phase.ResultPhase)
        {
            Debug.Log(gameData.player1P.Life + "  " + gameData.player2P.Life);
            Debug.Log(gameData.player1P.EnemyLife + "  " + gameData.player2P.EnemyLife);
            if (gameData.player1P.EnemyLife <= 0 || gameData.player2P.EnemyLife <= 0)
            {
                Debug.Log("gameSet");
                gameData.SetNowPhase = GameCommonData.Phase.GameSetPhase;
            }
            else
            {
                gameData.PhaseProgress();
            }
        }
    }
Exemple #2
0
    /// <summary>
    /// リザルトを閉じる
    /// </summary>
    private IEnumerator ViewClose()
    {
        yield return(new WaitForSeconds(9.0f));

        fadeImage.CloseEvent();
        hitPositionText.Invoke("TextDelete", 3);
        for (int i = 0; i < 2; i++)
        {
            playerHitTimeText[i].Invoke("TextDelete", 3);
            enemyHitTimeText[i].Invoke("TextDelete", 3);
        }
        victoryText.Invoke("TextDelete", 3);
    }
Exemple #3
0
    public void ViewClose()
    {
        fadeImage.CloseEvent();
        for (int i = 0; i < 3; i++)
        {
            Player1.textsEevaluate[i].Invoke("TextDelete", 1);
            Player2.textsEevaluate[i].Invoke("TextDelete", 1);
            Player1.bodyImageResult[i].Invoke("ImageDelete", 1);
            Player2.bodyImageResult[i].Invoke("ImageDelete", 1);
        }
        Player1.hpText.Invoke("TextDelete", 1);
        Player2.hpText.Invoke("TextDelete", 1);

        uiArrow.SetBool("isStart", false);


        if (phaseCheck.NowPhaseGet == PhaseCheck.Phase.ResultPhase)
        {
            phaseCheck.PhaseProgress();
        }
    }