Exemplo n.º 1
0
    public void setCharacter(GameObject charObject)
    {
        charObject.transform.position =
            new Vector3(
                selectedCharacter.transform.position.x,
                selectedCharacter.transform.position.y,
                selectedCharacter.transform.position.z
                );
        selectedCharacter.SetActive(false);
        selectedCharacter = charObject;

        var charScript = charObject.GetComponent(typeof(CharacterScript)) as CharacterScript;

        GUIScript.LogStatus(
            "Player no {0} picked character {1}",
            this.playerNumber,
            charScript.charType);

        GUIScript.StartRound(playerNumber);
    }