// Update is called once per frame void FixedUpdate() { if (LifeManager.getInstance().getLifes() < LifeManager.DEFAULT_LIFES) { text.text = LifeRegenerator.getRemainingTime(); } else { text.text = ""; } }
public Base(Teams team, Vec2 feetPos) : base(HEALTH, StructureTypes.Base, team, new Rect( feetPos.X - WIDTH / 2f, feetPos.Y - HEIGHT, WIDTH, HEIGHT)) { Regen = new LifeRegenerator(this, null, RegenTick, HEALTH_REGEN); }
// Update is called once per frame void Update() { text.text = LifeRegenerator.getRemainingTime(); }