private void Update(){ if (FsmEditor.Active != null) { ErrorChecker.Update (); if (EditorApplication.isPlaying) { debugProgress += Time.deltaTime * 30; if (debugProgress > 142) { debugProgress = 0; } FsmEditor.RepaintAll (); } } }