public static void Update() { if (FsmErrorChecker.SkipErrorCheck()) { return; } if (SkillEditor.NeedRepaint) { return; } if (FsmErrorChecker.checkForErrors) { FsmErrorChecker.DoCheckForErrors(); SkillSelector.RefreshView(); } else { if (FsmErrorChecker.checkFsm != null) { FsmErrorChecker.DoCheckFsmForErrors(FsmErrorChecker.checkFsm); SkillSelector.RefreshView(); } } FsmErrorChecker.checkForErrors = false; FsmErrorChecker.checkFsm = null; }
private void OnDisable() { if (SkillSelector.instance == this) { SkillSelector.instance = null; } this.filteredList.Clear(); }
public override void Initialize() { this.isToolWindow = true; SkillSelector.instance = this; this.InitWindowTitle(); base.set_minSize(new Vector2(200f, 100f)); this.BuildFilteredList(); }