public override void Action() { overheatBuffer.incrementData(step); if (overheatBuffer.GetData() >= overheatBuffer.GetDataMax()) { isOverheated = true; } }
public override bool Check() { if (clip.GetData() - ammoPerShot < 0) { actionMixin.CheckAndAction(); return(false); } return(true); }
public override void Action() { text.text = data.GetData().ToString(); }
// Update is called once per frame void Update() { sliderForground.sizeDelta = new Vector2(data.GetData() / data.GetDataMax() * maxWidth, sliderForground.sizeDelta.y); }