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