コード例 #1
0
    public IEnumerator Set_Attempt_Text_Minus()
    {
        KillPlayerLevelThree killPlayer = playerThree.GetComponent <KillPlayerLevelThree>();

        PlayerUtility.setAttemptText(killPlayer.txt, -5);

        Assert.AreEqual("Attempts: 0", killPlayer.txt.text);

        yield return(null);
    }
コード例 #2
0
    public IEnumerator Is_Text_Object_Connected_To_Script()
    {
        KillPlayerLevelThree killPlayer = playerThree.GetComponent <KillPlayerLevelThree>();

        if (killPlayer.txt != null)
        {
            yield break;
        }

        Assert.Fail();
    }