// Update is called once per frame void Update() { if (InactiveCurrTime > InactiveTime) { Seamstress.UIUnchanged(CurrentState); InactiveCurrTime = 0.0f; } InactiveCurrTime += Time.deltaTime; }