Exemplo n.º 1
0
    void updateUi(LGameStructure.CharacterData data)
    {
        m_CoinText.text = GameManager.formatCoinValue(data.coin);

        m_CurrentLiveText.text        = data.shieldPercent.ToString();
        m_CurrentLiveImage.fillAmount = data.shieldPercent;
        m_HealthText.text             = data.healthPercent.ToString();
        m_HealthImage.fillAmount      = data.healthPercent;
    }
Exemplo n.º 2
0
 public void OnCharacterDataChanged(GameManager sender, LGameStructure.CharacterData data)
 {
     updateUi(data);
 }