public override void Action() { overheatBuffer.incrementData(step); if (overheatBuffer.GetData() >= overheatBuffer.GetDataMax()) { isOverheated = true; } }
// Update is called once per frame void Update() { sliderForground.sizeDelta = new Vector2(data.GetData() / data.GetDataMax() * maxWidth, sliderForground.sizeDelta.y); }