Esempio n. 1
0
    // Update is called once per frame
    void Update()
    {
        player.text = humanPlayer.GetCharacter();
        GameObject paGameObject = humanPlayer.PlayerAvatar;

        if (paGameObject != null)
        {
            PlayerAvatar pa = paGameObject.GetComponent <PlayerAvatar>();
            item.text      = pa.GetWeapon();
            hitPoints.text = "HP = " + pa.Hitpoints;
        }
    }