private void Update() { if (this.newStep != this.nowStep) { this.nowStep = this.newStep; this.SetIcon(this.digimonIcon1.gameObject, this.activeIcon1); this.SetIcon(this.digimonIcon2.gameObject, this.activeIcon2); this.SetIcon(this.digimonIcon3.gameObject, this.activeIcon3); } }
public void SetGaugeValue(float value) { if (0.33f >= value) { this.newStep = PartsGaugePoint.Step.GAUGE_LEVEL_1; this.activeIcon1 = true; this.activeIcon2 = false; this.activeIcon3 = false; } else if (0.66f >= value) { this.newStep = PartsGaugePoint.Step.GAUGE_LEVEL_2; this.activeIcon1 = false; this.activeIcon2 = true; this.activeIcon3 = false; } else { this.newStep = PartsGaugePoint.Step.GAUGE_LEVEL_3; this.activeIcon1 = false; this.activeIcon2 = false; this.activeIcon3 = true; } }