Ejemplo n.º 1
0
    public void TestFirebaseControllerSimplePasses()
    {
        GameObject         gameObject = new GameObject();
        FirebaseController fc         = gameObject.AddComponent <FirebaseController>();

        Assert.AreEqual("", "");
        PlayerModel[] playerModelArray = new PlayerModel[2];
        playerModelArray[0] = new PlayerModel(PlayerId.Player1, EnumRole.Citizen);
        playerModelArray[1] = new PlayerModel(PlayerId.Player2, EnumRole.Werewolf);
        fc.SetPlayers(playerModelArray);
    }
Ejemplo n.º 2
0
    public void ButtonSetPlayer()
    {
        PlayerModel[] PlayerModelArray = new PlayerModel[3];
        PlayerModelArray[0] = new PlayerModel(PlayerId.Player1, EnumRole.Citizen);
        PlayerModelArray[1] = new PlayerModel(PlayerId.Player2, EnumRole.Werewolf);
        PlayerModelArray[2] = new PlayerModel(PlayerId.Player3, EnumRole.Citizen);
        firebaseController.SetPlayers(PlayerModelArray);
//		PlayerModelArray[3] = new PlayerModel(PlayerId.Player4, EnumRole.Citizen);
//		PlayerModelArray[4] = new PlayerModel(PlayerId.Player5, EnumRole.Citizen);
//		PlayerModelArray[5] = new PlayerModel(PlayerId.Player6, EnumRole.Citizen);
//		gameViewController.SetTimer(3);
//		gameViewController.SetPlayers(PlayerModelArray, gameManager);
//		gameViewController.SetVote(PlayerId.Player1, PlayerId.Player2);
//		gameViewController.SetVote(PlayerId.Player2, PlayerId.Player1);
//		gameViewController.SetVotedNum(PlayerId.Player1, 3);
//		gameViewController.SetVotedNum(PlayerId.Player2, 1);
    }