示例#1
0
    /// <summary>
    /// Loads the player hud with all the data from the primary monster.
    /// </summary>
    void LoadPlayerMonsterHud()
    {
        GameObject playerGo = playerInventory.GetMonster();

        playerGo.SetActive(true);
        playerGo.transform.parent        = playerBattleStation;
        playerGo.transform.position      = new Vector3(0.0f, 0.0f);
        playerGo.transform.localPosition = new Vector3(0.0f, 0.0f);
        playerMonster = playerGo.GetComponent <Monster>();
        playerHUD.SetHUD(playerMonster);
        playerMonster.SetSprite();
        playerHUD.SetMovesHUD(playerMonster);
        playerHUD.UpdateUsesHUD(playerMonster);
    }