Ejemplo n.º 1
0
    //[ClientRpc]
    public void Initialize(int role)
    {
        //active = false;

        gameManager = GameManager.instance;

        count = 0;
        actionsTaken = new int[1000][];
        actionsLeft = 4;

        hand = new GameObject("Hand").AddComponent<Hand>();

        hand.transform.parent = transform;

        hand.Initialize(this);

        cityID = 4;
        CurrentCity = GameManager.GetCityFromID(4);

        Debug.Log(role);
        Debug.Log(GameManager.roleCardStack.cards.Count);

        Card tempRole = GameManager.roleCardStack.cards[role];

        this.roleCard = tempRole as _roleCard;

        //this.roleCard = (_roleCard) GameManager.roleCardStack.cards[roleCard]; //GameManager.roleCardStack.roleCards.Contains(roleCard); //Error?
        MoveToCity(cityID);
        CurrentCity.UpdatePawns();
    }