Example #1
0
    public IEnumerator _Test_setPlayer()
    {
        GameObject player = new GameObject();

        player.AddComponent <SmoothCamera>();
        player.AddComponent <PlayerMovement>();
        SmoothCamera   playerScript   = player.GetComponent <SmoothCamera>();
        PlayerMovement playerPosition = player.GetComponent <PlayerMovement>();



        playerScript.setPlayer(player);
        Assert.AreEqual(player, playerScript.getPlayer());


        yield return(null);
    }