private void ResetAnimationEngine() { string className = "AnimEngine_" + animationEngine.ToString(); if (animEngine == null || animEngine.ToString() != className) { animEngine = (AnimEngine)ScriptableObject.CreateInstance(className); } }
private void ResetAnimationEngine() { string className = ""; if (animationEngine == AnimationEngine.Custom) { className = customClassName; } else { className = "AnimEngine_" + animationEngine.ToString(); } if (!string.IsNullOrEmpty(className) && (animEngine == null || animEngine.ToString() != className)) { animEngine = (AnimEngine)ScriptableObject.CreateInstance(className); } }
protected void ResetAnimationEngine(AnimationEngine animationEngine, string customClassName) { string className = ""; if (animationEngine == AnimationEngine.Custom) { className = customClassName; } else { className = "AnimEngine_" + animationEngine.ToString(); } if (className != "" && (editingAnimEngine == null || editingAnimEngine.ToString() != className)) { editingAnimEngine = (AnimEngine)ScriptableObject.CreateInstance(className); } }