Exemple #1
0
    public void updateHUDafterTrade()
    {
        GameManager  manager = FindObjectOfType <GameManager>();
        Player_Class player  = manager.currentPlayer;

        victoryPointsText.text   = player.calcVictoryPoints().ToString();
        wealthText.text          = player.getWealth().ToString();
        achievementText.text     = player.getAchievement().ToString();
        commonMineralText.text   = player.getCommonMineral().ToString();
        uncommonMineralText.text = player.getRareMineral().ToString();
        rareMineralText.text     = player.getVeryRareMineral().ToString();
    }
Exemple #2
0
    /*public static void checkForHUDHoverOver() {
     *  raycastResults = GetEventSystemRaycastResults();
     *  for(int i = 0; i < raycastResults.Count; i++) {
     *      RaycastResult curResult = raycastResults[i];
     *      IHUDHoverable hoverable = curResult.gameObject.GetComponent<IHUDHoverable>();
     *      if(hoverable != null) {
     *          hoverable.onHover();
     *      }
     *  }
     * }*/

    public void updateHUD()
    {
        GameManager  manager = FindObjectOfType <GameManager>();
        Player_Class player  = manager.currentPlayer;

        victoryPointsText.text   = player.calcVictoryPoints().ToString();
        wealthText.text          = player.getWealth().ToString();
        achievementText.text     = player.getAchievement().ToString();
        commonMineralText.text   = player.getCommonMineral().ToString();
        uncommonMineralText.text = player.getRareMineral().ToString();
        rareMineralText.text     = player.getVeryRareMineral().ToString();
        //turnNumber.text = manager.turnsSoFar.ToString();

        clearShipInfo();
        notifications.refreshNotificationsDisplay(player);
    }