void OnEnable() { if(!texLoaded) { tex_orb = AMEditorResource.LoadEditorTexture("am_orb"); texLoaded = true; } window = this; this.maxSize = new Vector2(715f,398f); this.minSize = this.maxSize; this.wantsMouseMove = true; loadAnimatorData(); oData = AMOptionsFile.loadFile(); setupFilteredCategories(); selectedIndex = getCategoryIndexForEase(key.easeType); if(getSelectedEaseName(category,selectedIndex) == "Custom") { isCustomEase = true; } if(isCustomEase && key.customEase.Count > 0) { curve = key.getCustomEaseCurve(); } else { setEasingCurve(); } }
void OnDisable() { window = null; justSet = false; key = null; track = null; aData = null; }