// Update is called once per frame void Update() { if (UIStatic.HasInt(UIStatic.MONEY)) { moneyText.text = UIStatic.GetInt(UIStatic.MONEY).ToString(); } }
// Update is called once per frame void Update() { if (UIStatic.HasInt(UIStatic.CUR_CUBOS)) { text.text = UIStatic.GetInt(UIStatic.CUR_CUBOS).ToString(); } if (!PlayerCommands.Get().EnoughRoomForCubos()) { label.color = flashRedColor; text.color = flashRedColor; } else { label.color = m_textStartColor; text.color = m_textStartColor; } }
void Update() { if (UIStatic.HasInt(UIStatic.MAX_SACRIFICE)) { goalText.text = UIStatic.GetInt(UIStatic.MAX_SACRIFICE).ToString(); } if (UIStatic.HasInt(UIStatic.CUR_SACRIFICE)) { currentSacrificeText.text = UIStatic.GetInt(UIStatic.CUR_SACRIFICE).ToString(); } if (UIStatic.HasInt(UIStatic.CUR_SACRIFICE) && UIStatic.HasInt(UIStatic.MAX_SACRIFICE)) { if (UIStatic.GetInt(UIStatic.CUR_SACRIFICE) >= UIStatic.GetInt(UIStatic.MAX_SACRIFICE) - 10) { FlashColor(); } } }