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); } }
private void ResetAnimationEngine() { string className = "AnimEngine_" + animationEngine.ToString (); if (animEngine == null || animEngine.ToString () != className) { animEngine = (AnimEngine) ScriptableObject.CreateInstance (className); } }
public void ResetAnimationEngine() { string className = "AnimEngine"; if (animationEngine == AnimationEngine.Custom) { if (customAnimationClass.Length > 0) { className = customAnimationClass; } } else { className += "_" + animationEngine.ToString (); } if (animEngine == null || animEngine.ToString () != className) { try { animEngine = (AnimEngine) ScriptableObject.CreateInstance (className); if (animEngine != null) { animEngine.Declare (this); } } catch {} } }