protected override void ShowProgress() { ProgressTransform.localScale = new Vector2((ActionTime / MaxKeyDownTime), (ActionTime / MaxKeyDownTime)); if (!_isValidTime && ActionTime > MinKeyDownTime) { _isValidTime = true; ProgressTransform.Find("Progress").GetComponent <Renderer>().material.SetColor("_Color", Color.green); } }
protected override void ResetProgress() { _isValidTime = false; ProgressTransform.localScale = new Vector2(0, 0); ProgressTransform.Find("Progress").GetComponent <Renderer>().material.SetColor("_Color", DefaultProgressColor); }